* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top section with gift cards background */
.top-section {
    flex: 1;
    background: linear-gradient(135deg, #e8d5f2 0%, #d1b3e6 100%);
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}

.gift-cards-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px 20px;
}

.gift-card {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform-origin: top left;
}

/* Image Cards */
.image-card {
    overflow: hidden;
    z-index: 3;
}

.image-card.card1 {
    width: 200px;
    height: 120px;
    top: 20px;
    left: 30px;
    transform: rotate(-15deg);
}

.image-card.card2 {
    width: 180px;
    height: 110px;
    top: 60px;
    left: 120px;
    transform: rotate(-8deg);
    z-index: 2;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Other gift cards */
.green-card {
    width: 160px;
    height: 100px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    top: 40px;
    left: 200px;
    transform: rotate(5deg);
    z-index: 1;
}

.blue-card {
    width: 170px;
    height: 105px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    top: 80px;
    left: 280px;
    transform: rotate(-5deg);
    z-index: 0;
}

.white-card {
    width: 150px;
    height: 95px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    top: 20px;
    left: 350px;
    transform: rotate(10deg);
    z-index: 1;
    border: 1px solid #e0e0e0;
}

/* Bottom section with form */
.bottom-section {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 50vh;
}

.form-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border: 2px solid #4caf50;
    border-radius: 16px;
    padding: 30px;
    position: relative;
}

/* Top icons */
.form-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.camera-icon {
    width: 32px;
    height: 32px;
    background: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.circle-icon {
    width: 24px;
    height: 24px;
    border: 2px solid #4caf50;
    border-radius: 50%;
    background: transparent;
}

/* Scratch instruction */
.scratch-instruction {
    text-align: center;
    margin-bottom: 25px;
}

.scratch-instruction p {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Card with scratch overlay */
.card {
    position: relative;
    background: transparent;
    margin-bottom: 25px;
}

.scratch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #c0c0c0, #e0e0e0);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.3) 2px,
            rgba(255, 255, 255, 0.3) 4px
        );
    border-radius: 12px;
    cursor: crosshair;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.scratch-overlay.scratched {
    opacity: 0;
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 5;
}

/* Form styling */
.card-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

input {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    font-family: 'Courier New', monospace;
}

input:focus {
    outline: none;
    border-color: #4caf50;
}

/* Continue button */
.continue-btn {
    width: 100%;
    background: #4caf50;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.continue-btn:hover {
    background: #45a049;
}

/* Security notice */
.security-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 8px;
}

.security-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.security-notice p {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .top-section {
        min-height: 40vh;
    }
    
    .gift-cards-container {
        padding: 20px 10px;
    }
    
    .image-card.card1 {
        width: 150px;
        height: 90px;
        left: 20px;
    }
    
    .image-card.card2 {
        width: 140px;
        height: 85px;
        left: 80px;
    }
    
    .green-card, .blue-card, .white-card {
        width: 120px;
        height: 75px;
    }
    
    .form-container {
        padding: 20px;
        margin: 20px;
    }
    
    .bottom-section {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .gift-card {
        transform: none !important;
    }
    
    .image-card.card1 {
        left: 10px;
        top: 10px;
    }
    
    .image-card.card2 {
        left: 60px;
        top: 30px;
    }
    
    .green-card {
        left: 110px;
        top: 10px;
    }
    
    .blue-card {
        left: 160px;
        top: 30px;
    }
    
    .white-card {
        left: 210px;
        top: 10px;
    }
}