/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c41e3a;
    --secondary-color: #8b0000;
    --gold-color: #ffd700;
    --dark-gold: #daa520;
    --light-bg: #fff5f5;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --success-color: #28a745;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(196, 30, 58, 0.1);
    --shadow-md: 0 4px 16px rgba(196, 30, 58, 0.15);
    --shadow-lg: 0 8px 32px rgba(196, 30, 58, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e8 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.2);
}

.progress-step.active .step-label {
    color: var(--primary-color);
}

.progress-step.completed .step-number {
    background: var(--gold-color);
    color: var(--secondary-color);
    border-color: var(--gold-color);
}

.progress-step.completed .step-label {
    color: var(--gold-color);
}

.progress-line {
    height: 3px;
    width: 60px;
    background: #e0e0e0;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.progress-step.completed ~ .progress-line,
.progress-step.active ~ .progress-line {
    background: var(--gold-color);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== PAGES ===== */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

/* ===== HERO SECTION (PAGE 1) ===== */
.hero-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(196, 30, 58, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.subtitle {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 600;
}

.prizes-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.prize-item {
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--gold-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prize-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.prize-image {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    border: 2px solid var(--primary-color);
}

.prize-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prize-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.prize-item span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.guarantee-badge {
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--dark-gold) 100%);
    color: var(--secondary-color);
    padding: 20px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 18px;
    margin: 30px 0;
    box-shadow: var(--shadow-md);
}

.guarantee-badge i {
    font-size: 32px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--gold-color);
    color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--dark-gold);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 50px;
    font-size: 20px;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== PAGE TITLES ===== */
.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
}

/* ===== GIFTS GRID (PAGE 2) ===== */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gift-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-card:hover {
    border-color: var(--gold-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gift-card.selected {
    border-color: var(--primary-color);
    background: var(--light-bg);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.2);
}

.gift-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold-color);
    overflow: hidden;
    padding: 10px;
}

.gift-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gift-image i {
    font-size: 48px;
    color: var(--primary-color);
}

.gift-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.gift-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.remaining-count {
    background: var(--gold-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ===== FORMS ===== */
.form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

input:valid {
    border-color: var(--success-color);
}

/* ===== PHONE INPUT WITH PREFIX ===== */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.phone-prefix {
    background: var(--light-bg);
    padding: 12px 15px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    border-right: 2px solid #e0e0e0;
    font-family: 'Poppins', sans-serif;
}

.phone-input-wrapper input[type="tel"] {
    border: none;
    padding: 12px 18px;
    flex: 1;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.phone-input-wrapper input[type="tel"]:focus {
    box-shadow: none;
}

/* ===== DELIVERY COST INFO ===== */
.delivery-cost-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid var(--gold-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.delivery-cost-info i {
    font-size: 24px;
    color: var(--primary-color);
}

/* ===== CHECKBOX ===== */
.checkbox-group {
    margin: 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 40px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 28px;
    width: 28px;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary-color);
}

.checkbox-label input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 15px;
}

/* ===== DATE INFO ===== */
.date-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.date-info i {
    font-size: 24px;
    color: #2196f3;
}

.selected-date {
    background: var(--light-bg);
    border: 2px solid var(--gold-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.selected-date i {
    font-size: 24px;
    color: var(--success-color);
}

/* ===== ORDER SUMMARY (PAGE 6) ===== */
.order-summary {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.order-summary h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-label i {
    color: var(--primary-color);
    font-size: 18px;
}

.summary-value {
    color: var(--text-light);
    text-align: right;
    max-width: 60%;
}

.summary-total {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px solid var(--gold-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
}

.total-amount {
    color: var(--primary-color);
    font-size: 32px;
}

/* ===== THANK YOU PAGE ===== */
.text-center {
    text-align: center;
}

.success-icon {
    margin: 30px 0;
}

.success-icon i {
    font-size: 100px;
    color: var(--success-color);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.thank-you-message {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
}

.thank-you-message p {
    font-size: 16px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-dark);
}

.thank-you-message i {
    color: var(--primary-color);
    font-size: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .progress-bar {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 20px;
    }

    .progress-line {
        width: 40px;
        margin: 0 5px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .main-title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 18px;
    }

    .page-content {
        padding: 25px;
    }

    .page-title {
        font-size: 28px;
    }

    .gifts-grid {
        grid-template-columns: 1fr;
    }

    .gift-image {
        width: 180px;
        height: 180px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .prizes-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .prize-image {
        width: 80px;
        height: 80px;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
    }

    .summary-item {
        flex-direction: column;
        gap: 5px;
    }

    .summary-value {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .page-content {
        padding: 20px;
    }

    .prizes-preview {
        grid-template-columns: 1fr;
    }

    .prize-image {
        width: 90px;
        height: 90px;
    }

    .guarantee-badge {
        font-size: 14px;
        padding: 15px 20px;
    }
}
