/* ================================================================
   ASC 2026 Registration Form — form.css
   Theme: Arab Security Conference — Dark Cyber / Neon Blue
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@300;400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
.asc-wrap {
    --asc-bg:          #000814;
    --asc-surface:     #0a0f1e;
    --asc-surface-2:   #0e1628;
    --asc-border:      rgba(0, 191, 255, 0.15);
    --asc-border-glow: rgba(0, 191, 255, 0.4);
    --asc-blue:        #00bfff;
    --asc-blue-dim:    #0080aa;
    --asc-blue-bright: #40d4ff;
    --asc-white:       #f0f4ff;
    --asc-muted:       rgba(176, 200, 230, 0.55);
    --asc-error:       #ff4d6a;
    --asc-success:     #00e5a0;
    --asc-info:        #60a5fa;
    --asc-gold:        #fbbf24;

    background: var(--asc-bg);
    color: var(--asc-white);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 80px;
}

.asc-wrap *,
.asc-wrap *::before,
.asc-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.asc-hero {
    position: relative;
    background: linear-gradient(160deg, #000814 0%, #001a3a 45%, #000814 100%);
    padding: 80px 40px 60px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--asc-border);
    margin-bottom: 48px;
}

.asc-hero__glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Animated grid lines */
.asc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 191, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.asc-hero__content {
    position: relative;
    z-index: 1;
}

.asc-year {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--asc-blue);
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 0 60px rgba(0, 191, 255, 0.3);
}

.asc-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--asc-white);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.asc-hero__sub {
    font-size: 0.9rem;
    color: var(--asc-blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}

.asc-hero__tagline {
    font-size: 1rem;
    color: var(--asc-muted);
    font-weight: 300;
}

/* ── Section Label ─────────────────────────────────────────────── */
.asc-section {
    padding: 0 24px;
    margin-bottom: 40px;
}

.asc-section__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--asc-blue);
    margin-bottom: 16px;
}

/* ── Ticket Cards ──────────────────────────────────────────────── */
.asc-tickets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 680px) {
    .asc-tickets { grid-template-columns: 1fr; }
}

.asc-ticket {
    position: relative;
    background: var(--asc-surface);
    border: 1px solid var(--asc-border);
    border-radius: 2px;
    padding: 28px 20px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
    user-select: none;
}

.asc-ticket:hover {
    border-color: var(--asc-border-glow);
    transform: translateY(-3px);
    box-shadow: 0 0 24px rgba(0, 191, 255, 0.12);
}

.asc-ticket.is-selected {
    border-color: var(--asc-blue);
    box-shadow: 0 0 32px rgba(0, 191, 255, 0.25), inset 0 0 0 1px rgba(0, 191, 255, 0.1);
    transform: translateY(-4px);
}

.asc-ticket.is-selected .asc-ticket__glow {
    opacity: 1;
}

.asc-ticket__glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--asc-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.asc-ticket__icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.asc-ticket__name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--asc-white);
    margin-bottom: 4px;
    line-height: 1.3;
}

.asc-divider {
    color: var(--asc-blue);
    margin: 0 2px;
}

.asc-ticket__desc {
    font-size: 0.75rem;
    color: var(--asc-muted);
    margin-bottom: 14px;
}

.asc-ticket__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--asc-blue-bright);
    margin-bottom: 16px;
}

.asc-ticket__includes {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.asc-ticket__includes span {
    font-size: 0.72rem;
    color: var(--asc-muted);
    line-height: 1.4;
}

.asc-note {
    color: var(--asc-gold) !important;
}

.asc-ticket__selected-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--asc-blue);
    color: #000814;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
}

.asc-ticket.is-selected .asc-ticket__selected-badge {
    opacity: 1;
    transform: scale(1);
}

/* ── Form Wrapper ──────────────────────────────────────────────── */
.asc-form-wrap {
    background: var(--asc-surface);
    border: 1px solid var(--asc-border);
    border-radius: 2px;
    padding: 40px;
    margin: 0 24px;
    position: relative;
    overflow: hidden;
}

.asc-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--asc-blue), transparent);
}

.asc-form-header {
    margin-bottom: 28px;
}

.asc-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--asc-white);
    margin-bottom: 6px;
}

.asc-form-subtitle {
    font-size: 0.85rem;
    color: var(--asc-muted);
    line-height: 1.6;
}

.asc-highlight { color: var(--asc-blue); font-weight: 600; }

/* ── Alert Banners ─────────────────────────────────────────────── */
.asc-alert {
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.5;
    display: none;
}

.asc-alert--error {
    background: rgba(255, 77, 106, 0.1);
    border: 1px solid rgba(255, 77, 106, 0.3);
    color: #ff8fa0;
    display: none;
}

.asc-alert--success {
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid rgba(0, 229, 160, 0.3);
    color: #00e5a0;
    display: none;
}

.asc-alert--info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--asc-info);
}

/* ── Form Fields ───────────────────────────────────────────────── */
.asc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .asc-row { grid-template-columns: 1fr; }
    .asc-form-wrap { padding: 28px 20px; }
}

.asc-field {
    margin-bottom: 18px;
}

.asc-field label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--asc-muted);
    margin-bottom: 7px;
    font-family: 'Montserrat', sans-serif;
}

.asc-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    padding: 11px 14px;
    color: var(--asc-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.asc-field input:focus {
    border-color: var(--asc-blue);
    background: rgba(0, 191, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.asc-field input::placeholder { color: rgba(176, 200, 230, 0.22); }

.asc-field__error {
    display: none;
    font-size: 0.72rem;
    color: var(--asc-error);
    margin-top: 5px;
}

.asc-field.has-error input {
    border-color: var(--asc-error);
    box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.1);
}

.asc-field.has-error .asc-field__error { display: block; }

/* ── Price Summary Box ─────────────────────────────────────────── */
.asc-price-box {
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 1px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 22px;
    gap: 12px;
}

.asc-price-box__label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--asc-muted);
    margin-bottom: 2px;
}

.asc-price-box__type {
    font-size: 0.8rem;
    color: var(--asc-blue);
    font-weight: 500;
}

.asc-price-box__amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--asc-blue-bright);
    white-space: nowrap;
}

/* ── Submit Button ─────────────────────────────────────────────── */
.asc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--asc-blue);
    color: #000814;
    border: none;
    border-radius: 1px;
    padding: 14px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.asc-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.asc-btn:hover {
    background: var(--asc-blue-bright);
    box-shadow: 0 0 28px rgba(0, 191, 255, 0.45);
}

.asc-btn:active { transform: scale(0.99); }

.asc-btn.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.asc-btn.is-loading .asc-btn__text,
.asc-btn.is-loading .asc-btn__icon { display: none; }

.asc-btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 8, 20, 0.3);
    border-top-color: #000814;
    border-radius: 50%;
    animation: asc-spin 0.7s linear infinite;
}

.asc-btn.is-loading .asc-btn__spinner { display: block; }

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

/* ── Notice ────────────────────────────────────────────────────── */
.asc-notice {
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--asc-muted);
    text-align: center;
    line-height: 1.6;
}

.asc-lock { margin-right: 4px; }

/* ── Entrance animation ────────────────────────────────────────── */
@keyframes asc-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.asc-section,
.asc-form-wrap {
    animation: asc-fade-up 0.5s ease both;
}

.asc-section   { animation-delay: 0.15s; }
.asc-form-wrap { animation-delay: 0.3s; }
