/* ============================================
   GIFT CARD - Styles
   ============================================ */

/* === Hero compatto === */
.gc-hero {
    position: relative;
    padding: 160px 0 80px;
    background: var(--dark);
    text-align: center;
    overflow: hidden;
}

.gc-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(184, 134, 11, 0.08) 0%, transparent 70%);
}

.gc-hero-content {
    position: relative;
    z-index: 1;
}

.gc-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

.gc-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* === Steps === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--gold-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.step-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.step-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === Form Section === */
.gc-form-section {
    padding: 80px 0;
}

.gc-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

/* === Card Preview === */
.gc-card-preview {
    position: sticky;
    top: 100px;
}

.gc-card-inner {
    background: #1a1a1a;
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.gc-card-inner::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 14px;
    pointer-events: none;
}

.gc-card-brand {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 3px;
}

.gc-card-brand-sub {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 1rem;
}

.gc-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.gc-card-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin: 0.5rem 0;
}

.gc-card-recipient,
.gc-card-from {
    color: #ccc;
    font-size: 0.85rem;
    margin: 0.3rem 0;
}

.gc-card-message {
    color: var(--gold-light);
    font-style: italic;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    min-height: 1.2em;
}

.gc-card-code {
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 2px;
    margin: 1rem 0 0.5rem;
    font-family: 'Courier New', monospace;
}

.gc-card-footer {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.5rem;
}

/* === Form === */
.gc-form {
    background: var(--dark-soft);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gc-section-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.gc-section-label:first-child {
    margin-top: 0;
}

/* === Amount Grid === */
.gc-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.gc-amount-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.9rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.gc-amount-btn:hover {
    border-color: var(--gold);
    background: rgba(184, 134, 11, 0.1);
}

.gc-amount-btn.active {
    background: var(--gold-gradient);
    border-color: var(--gold);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

/* === Custom Amount === */
.gc-custom-amount {
    margin-top: 0.75rem;
}

.gc-custom-amount label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.gc-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.gc-input-prefix {
    position: absolute;
    left: 14px;
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1;
}

.gc-input-with-icon input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.gc-input-with-icon input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.gc-input-with-icon input::placeholder {
    color: var(--text-muted);
}

/* === Form rows === */
.gc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gc-form .form-group {
    margin-bottom: 1rem;
}

.gc-form .form-group input,
.gc-form .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.gc-form .form-group input:focus,
.gc-form .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.gc-form .form-group label {
    color: var(--text-muted);
}

.gc-form .form-group input:focus + label,
.gc-form .form-group textarea:focus + label,
.gc-form .form-group input:not(:placeholder-shown) + label,
.gc-form .form-group textarea:not(:placeholder-shown) + label {
    color: var(--gold);
}

.gc-char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* === Summary === */
.gc-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.gc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    color: #ccc;
    font-size: 0.95rem;
}

.gc-summary-total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

/* === Submit button === */
.gc-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}

.gc-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.gc-secure-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.gc-secure-note i {
    color: var(--gold);
    margin-right: 0.3rem;
}

/* === Error === */
.gc-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* === Success Page === */
.gc-success {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    padding-top: 120px;
}

.gc-success-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.gc-success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.gc-success-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.gc-success-subtitle {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.gc-success-card {
    background: var(--dark-soft);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.gc-success-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.gc-success-row:last-child {
    border-bottom: none;
}

.gc-success-row strong {
    color: var(--white);
}

.gc-success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.gc-loading {
    color: var(--gold);
    font-size: 1rem;
}

/* === Cancelled Page === */
.gc-cancelled {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    padding-top: 120px;
}

.gc-cancelled-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.gc-cancelled-icon {
    font-size: 5rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.gc-cancelled-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.gc-cancelled-content p {
    color: #ccc;
}

/* === Homepage Gift Card Section === */
.gc-home-section {
    background: var(--dark);
    padding: 80px 0;
}

.gc-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.gc-card-preview-home .gc-card-inner {
    max-width: 380px;
    margin: 0 auto;
}

.gc-home-text .section-title {
    color: var(--white);
}

.gc-home-text p {
    color: #ccc;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.gc-home-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.gc-home-features li {
    color: #ccc;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.gc-home-features li i {
    color: var(--gold);
    margin-right: 0.75rem;
}

/* === Responsive === */
@media (max-width: 992px) {
    .gc-form-wrapper {
        grid-template-columns: 1fr;
    }

    .gc-card-preview {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .gc-home-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .gc-home-preview {
        order: 2;
    }

    .gc-home-text {
        order: 1;
        text-align: center;
    }

    .gc-home-text .title-divider {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .gc-home-features {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 2rem auto 0;
    }

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

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

    .gc-form {
        padding: 1.5rem;
    }

    .gc-hero {
        padding: 130px 0 60px;
    }

    .gc-success-content h2,
    .gc-cancelled-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .gc-card-amount {
        font-size: 2.2rem;
    }

    .gc-card-title {
        font-size: 1.2rem;
    }
}
