/* ── Eagle Flight Gift Card Modal ─────────────────────────────────────────── */

/* Backdrop */
.efgc-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .72);
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.efgc-backdrop.open {
    display: flex;
}

/* Modal box */
.efgc-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e2533;
}

/* Header */
.efgc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #0a0c10;
    border-radius: 16px 16px 0 0;
}

.efgc-title {
    font-size: 18px;
    font-weight: 700;
    color: #D4A843;
    letter-spacing: .4px;
    font-family: 'Orbitron', system-ui, sans-serif;
}

.efgc-close {
    background: none;
    border: none;
    color: #9BA3B8;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: color .15s;
}
.efgc-close:hover { color: #fff; }

/* Price badge */
.efgc-price-badge {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 14px;
    margin: 0 0 8px;
    text-align: center;
}

/* Body */
.efgc-body {
    padding: 20px 24px 4px;
    flex: 1;
}

/* Section label */
.efgc-section {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin: 16px 0 8px;
}
.efgc-body .efgc-section:first-of-type { margin-top: 0; }

.efgc-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #9ca3af;
    font-size: 11px;
}

/* Row / group */
.efgc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.efgc-row.single { grid-template-columns: 1fr; }

.efgc-group { display: flex; flex-direction: column; gap: 5px; }

.efgc-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.efgc-input {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 16px;
    color: #1e2533;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    outline: none;
}
.efgc-input:focus {
    border-color: #D4A843;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, .15);
}

.efgc-textarea {
    resize: vertical;
    min-height: 56px;
}

/* Total line */
.efgc-total-line {
    font-size: 12px;
    color: #0369a1;
    font-weight: 600;
    margin-top: 4px;
}

/* Preset buttons */
.efgc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 16px;
}

.efgc-preset {
    background: #f3f4f6;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
}
.efgc-preset:hover {
    border-color: #D4A843;
    color: #c9920a;
    background: #fffbeb;
}
.efgc-preset.selected {
    background: #D4A843;
    border-color: #D4A843;
    color: #fff;
}

/* Error */
.efgc-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    margin: 8px 0;
}

/* Secure note */
.efgc-secure-note {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    margin: 8px 0 16px;
}

/* Footer */
.efgc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.efgc-secure-line {
    font-size: 11px;
    color: #9ca3af;
}

.efgc-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.efgc-btn-cancel {
    background: none;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s;
}
.efgc-btn-cancel:hover { border-color: #9ca3af; color: #374151; }

.efgc-btn-submit {
    background: #D4A843;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #0a0c10;
    cursor: pointer;
    letter-spacing: .3px;
    transition: background .15s, opacity .15s;
}
.efgc-btn-submit:hover:not(:disabled) { background: #E8C065; }
.efgc-btn-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ── Confirmation screen ──────────────────────────────────────────────────── */

.efgc-confirm-wrap {
    padding: 32px 24px;
    text-align: center;
}

.efgc-confirm-icon {
    width: 60px;
    height: 60px;
    background: #D4A843;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0a0c10;
    font-weight: 900;
    margin: 0 auto 16px;
}

.efgc-confirm-title {
    font-size: 22px;
    font-weight: 700;
    color: #0a0c10;
    margin-bottom: 20px;
    font-family: 'Orbitron', system-ui, sans-serif;
}

/* Gift card display block */
.efgc-card-display {
    background: linear-gradient(135deg, #0a0c10 60%, #1a1c24);
    border-radius: 14px;
    padding: 28px 32px;
    text-align: center;
    max-width: 340px;
    margin: 0 auto 20px;
}

.efgc-card-amount {
    color: #ffffff;
    font-size: 40px;
    font-weight: 700;
    font-family: 'Orbitron', system-ui, sans-serif;
    margin-bottom: 4px;
}

.efgc-card-label {
    color: #9BA3B8;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.efgc-card-code-wrap {
    background: rgba(212, 168, 67, .12);
    border: 1px solid #D4A843;
    border-radius: 8px;
    padding: 12px 20px;
}

.efgc-card-code {
    color: #D4A843;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: monospace;
    word-break: break-all;
}

.efgc-confirm-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

/* ── Shortcode trigger button ─────────────────────────────────────────────── */

.efs-gc-trigger-btn {
    display: inline-block;
    background: #D4A843;
    color: #0a0c10;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    font-family: 'Orbitron', system-ui, sans-serif;
    transition: background .15s;
}
.efs-gc-trigger-btn:hover { background: #E8C065; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 520px) {
    .efgc-row {
        grid-template-columns: 1fr;
    }
    .efgc-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .efgc-actions {
        flex-direction: column-reverse;
    }
    .efgc-btn-submit,
    .efgc-btn-cancel {
        width: 100%;
        text-align: center;
        padding: 13px;
    }
    .efgc-presets {
        justify-content: center;
    }
}
