/* ==========================================
   Gift Voucher Purchase Page Styles
   Created: 2025-12-30
   ========================================== */

/* Voucher Hero Section */
.voucher-hero {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--coral) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: white;
}

.voucher-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.voucher-hero h1 {
    font-family: var(--font-heading);
    font-size: var(--h1);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.voucher-hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.voucher-hero-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.voucher-hero-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 14px;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.voucher-hero-feature svg {
    width: 20px;
    height: 20px;
}

/* Voucher Purchase Section */
.voucher-purchase-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-sm);
}

.purchase-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Step Indicators */
.voucher-steps {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--light-gray);
    border-bottom: 1px solid var(--gray);
    position: relative;
}

.voucher-steps::before {
    content: '';
    position: absolute;
    top: calc(var(--spacing-md) + 16px);
    left: calc(var(--spacing-md) + 40px);
    right: calc(var(--spacing-md) + 40px);
    height: 2px;
    background: var(--gray);
    z-index: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex: 1;
    position: relative;
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step.active::after {
    background: var(--turquoise);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.step.active .step-number {
    background: var(--turquoise);
}

.step.completed .step-number {
    background: #28a745;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.step.completed .step-label {
    color: #28a745;
}

/* Form Content */
.voucher-form {
    padding: var(--spacing-lg) var(--spacing-md);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-section {
    margin-bottom: var(--spacing-lg);
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.form-section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Amount Selection */
.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.amount-option {
    position: relative;
}

.amount-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.amount-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: var(--light-gray);
    border: 2px solid var(--gray);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    min-height: 100px;
    text-align: center;
}

.amount-option input[type="radio"]:checked + .amount-card {
    background: var(--light-turquoise);
    border-color: var(--turquoise);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
}

.amount-card:hover {
    border-color: var(--turquoise);
    transform: translateY(-2px);
}

.amount-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--turquoise);
    margin-bottom: 4px;
}

.amount-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Custom Amount */
.custom-amount-wrapper {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--light-gray);
    border-radius: 8px;
}

.custom-amount-wrapper label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.custom-amount-input-group {
    position: relative;
    max-width: 300px;
}

.custom-amount-input-group input {
    width: 100%;
    padding: 12px 60px 12px 16px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid var(--gray);
    border-radius: 8px;
    transition: var(--transition);
}

.custom-amount-input-group input:focus {
    border-color: var(--turquoise);
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.currency-symbol {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    pointer-events: none;
}

.custom-amount-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Form Groups */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 14px;
}

.form-group label .required {
    color: var(--coral);
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--body);
    font-family: var(--font-body);
    border: 2px solid var(--gray);
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--turquoise);
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.char-counter {
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
    margin-top: 4px;
}

.form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    align-items: start;
    gap: 4px;
}

.form-hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message svg {
    width: 16px;
    height: 16px;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: start;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
    font-weight: 400;
}

.form-checkbox label a {
    color: var(--turquoise);
    text-decoration: underline;
}

.form-checkbox label a:hover {
    color: #1492A6;
}

/* Turnstile CAPTCHA */
.cf-turnstile {
    margin-bottom: var(--spacing-md);
}

/* Form Navigation Buttons */
.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray);
}

.btn-prev,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    min-height: 48px;
}

.btn-prev {
    background: var(--light-gray);
    color: var(--text-primary);
    border: 2px solid var(--gray);
}

.btn-prev:hover:not(:disabled) {
    background: var(--gray);
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--coral) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4);
}

.btn-prev:disabled,
.btn-next:disabled,
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

/* Loading State */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Voucher Benefits Section */
.voucher-benefits {
    padding: var(--spacing-xl) var(--spacing-sm);
    background: var(--light-gray);
}

.voucher-benefits-content {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-title {
    font-family: var(--font-heading);
    font-size: var(--h2);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.benefit-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    background: var(--light-turquoise);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    color: var(--turquoise);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.voucher-faq {
    padding: var(--spacing-xl) var(--spacing-sm);
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    font-family: var(--font-heading);
    font-size: var(--h2);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .voucher-hero {
        padding: var(--spacing-lg) 0;
    }

    .voucher-hero h1 {
        font-size: 32px;
    }

    .voucher-hero-subtitle {
        font-size: 16px;
    }

    .voucher-hero-features {
        flex-direction: column;
        align-items: center;
    }

    .voucher-steps {
        padding: var(--spacing-sm);
    }

    .step-label {
        display: none;
    }

    .step::after {
        top: 16px;
        left: calc(50% + 16px);
        width: calc(100% - 32px);
    }

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

    .form-actions {
        flex-direction: column;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .voucher-hero h1 {
        font-size: 28px;
    }

    .amount-options {
        grid-template-columns: 1fr;
    }

    .purchase-container {
        border-radius: 0;
    }
}

/* Print Styles for Voucher */
@media print {
    .voucher-steps,
    .form-actions,
    .voucher-benefits,
    .voucher-faq,
    .site-header,
    .site-footer {
        display: none;
    }

    .purchase-container {
        box-shadow: none;
    }
}
