/* Modern UI enhancements for auth, checkout, and shared surfaces */

.auth-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-shell {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-card {
    background: var(--surface-color, #fff);
    border: 1px solid var(--border-soft, rgba(15, 23, 42, 0.08));
    border-radius: 1.25rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.auth-card-body {
    padding: 2rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-strong, #172033);
}

.auth-brand p {
    color: var(--text-muted, #5b6474);
    margin: 0;
    font-size: 0.95rem;
}

.modern-control,
.auth-card .form-control {
    border-radius: 0.75rem;
    border-color: var(--border-soft, rgba(15, 23, 42, 0.12));
    padding: 0.75rem 1rem;
    min-height: 48px;
}

.modern-control:focus,
.auth-card .form-control:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color, #007bff) 18%, transparent);
}

.modern-btn,
.auth-card .btn-primary {
    border-radius: 0.75rem;
    min-height: 48px;
    font-weight: 600;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border-radius: 0.75rem;
    min-height: 48px;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--border-soft, rgba(15, 23, 42, 0.12));
    color: var(--text-strong, #172033);
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-google:hover {
    background: #f8fafc;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    color: var(--text-strong, #172033);
}

.btn-google svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted, #5b6474);
    font-size: 0.875rem;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-soft, rgba(15, 23, 42, 0.12));
}

.page-heading .page-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color, #007bff);
    margin-bottom: 0.35rem;
}

.page-heading .page-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.page-heading .page-subtitle {
    color: var(--text-muted, #5b6474);
    margin: 0;
}

.surface-card {
    background: var(--surface-color, #fff);
    border: 1px solid var(--border-soft, rgba(15, 23, 42, 0.08));
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.surface-card-body {
    padding: 1.5rem;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.payment-method-card {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.payment-method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 96px;
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid var(--border-soft, rgba(15, 23, 42, 0.08));
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.payment-method-card input:checked + .payment-method-card-body {
    border-color: var(--primary-color, #007bff);
    background: var(--primary-tint, rgba(0, 123, 255, 0.08));
    transform: translateY(-1px);
}

.payment-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted, #f7f8fb);
    color: var(--primary-color, #007bff);
    font-size: 1.15rem;
}

.payment-method-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.summary-panel {
    top: 1.5rem;
}

.summary-item-list {
    display: grid;
    gap: 0.75rem;
}

.summary-item-card {
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: var(--surface-muted, #f7f8fb);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.summary-total {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-soft, rgba(15, 23, 42, 0.08));
    font-size: 1.1rem;
    font-weight: 700;
}

.checkout-confirmation-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent-color, #28a745) 14%, white);
    color: var(--accent-color, #28a745);
}

.toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    display: grid;
    gap: 0.75rem;
    width: min(360px, calc(100vw - 2rem));
}

html[dir="rtl"] .toast-stack {
    right: auto;
    left: 1rem;
}

.toast-stack .toast-modern {
    border: 0;
    border-radius: 0.875rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.payment-method-toggle {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-soft, rgba(15, 23, 42, 0.08));
    border-radius: 0.75rem;
    background: #fff;
}

.report-nav-group .btn {
    margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
    .auth-card-body,
    .surface-card-body {
        padding: 1.25rem;
    }

    .payment-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contact-form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-captcha-question {
    white-space: nowrap;
    font-weight: 600;
}

.contact-details-list {
    display: grid;
    gap: 0.85rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-strong, #0f172a);
}

.contact-detail-item i {
    color: var(--primary-color, #007bff);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.contact-map-wrap {
    position: relative;
    width: 100%;
    min-height: 280px;
    border-radius: 0.875rem;
    overflow: hidden;
    border: 1px solid var(--border-soft, rgba(15, 23, 42, 0.08));
    background: #f8fafc;
}

.contact-map-wrap iframe {
    display: block;
    width: 100%;
    min-height: 280px;
    border: 0;
}

.event-map-wrap {
    margin-top: 0.75rem;
}
