/* ═══════════════════════════════════════════════════════════════
   Los Osos Tranquiles – 7th Anniversary Pre-Registration
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: #0d1117;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(232, 160, 74, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(232, 160, 74, 0.06) 0%, transparent 60%);
    font-family: 'Raleway', sans-serif;
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
}

/* ── Floating Particles ────────────────────────────────────── */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #e8a04a, #c0392b);
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }

    15% {
        opacity: 0.8;
    }

    85% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0.3);
    }
}

/* ── Container ─────────────────────────────────────────────── */
.container {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 20px 30px;
}

/* ── Logo ──────────────────────────────────────────────────── */
.logo-wrapper {
    text-align: center;
    margin-bottom: 10px;
}

.logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(192, 192, 192, 0.3);
    box-shadow:
        0 0 30px rgba(192, 192, 192, 0.15),
        0 0 60px rgba(232, 160, 74, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 40px rgba(192, 192, 192, 0.25),
        0 0 80px rgba(232, 160, 74, 0.15);
}

/* ── Header ────────────────────────────────────────────────── */
.header-section {
    text-align: center;
    margin-bottom: 32px;
}

.event-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 40%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.event-title sup {
    font-size: 0.4em;
}

.event-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    color: #e8a04a;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px auto;
    max-width: 200px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8a04a55, transparent);
}

.divider-ornament {
    color: #e8a04a;
    font-size: 10px;
}

.event-date {
    font-size: 1rem;
    color: #aaa;
    letter-spacing: 1px;
}

.date-icon {
    font-size: 0.95em;
}

.event-tagline {
    margin-top: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #666;
}

/* ── Form Card ─────────────────────────────────────────────── */
.form-card {
    background: rgba(22, 27, 34, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert strong {
    display: block;
    margin-bottom: 2px;
}

.alert p {
    margin: 0;
    opacity: 0.85;
}

.alert-success {
    background: rgba(46, 160, 67, 0.12);
    border: 1px solid rgba(46, 160, 67, 0.3);
    color: #56d364;
}

.alert-success .alert-icon {
    background: rgba(46, 160, 67, 0.2);
    color: #56d364;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 14px;
    margin-top: 2px;
}

.alert-error {
    background: rgba(248, 81, 73, 0.12);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: #f85149;
}

.alert-error .alert-icon {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 14px;
    margin-top: 2px;
}

/* ── Form Groups ───────────────────────────────────────────── */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.optional {
    text-transform: none;
    letter-spacing: 0;
    color: #555;
    font-weight: 400;
    font-size: 0.78rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #e8a04a;
    box-shadow: 0 0 0 3px rgba(232, 160, 74, 0.12);
}

.input-wrapper.input-error {
    border-color: #f85149 !important;
    box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.12) !important;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #555;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #e8a04a;
}

.textarea-wrapper {
    align-items: flex-start;
}

.textarea-icon {
    top: 14px;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px 13px 44px;
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

input::placeholder,
textarea::placeholder {
    color: #444;
}

.error-msg {
    display: block;
    color: #f85149;
    font-size: 0.78rem;
    margin-top: 6px;
    padding-left: 2px;
    animation: slideDown 0.3s ease;
}

/* ── Submit Button ─────────────────────────────────────────── */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 24px;
    margin-top: 8px;
    background: linear-gradient(135deg, #e8a04a 0%, #d4892e 100%);
    color: #0d1117;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(232, 160, 74, 0.25);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 160, 74, 0.35);
    background: linear-gradient(135deg, #f0ac56 0%, #e89a3a 100%);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(13, 17, 23, 0.3);
    border-top-color: #0d1117;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #1a1f2a;
}

.footer p {
    font-size: 0.75rem;
    color: #444;
    letter-spacing: 0.5px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 560px) {
    .container {
        padding: 30px 16px 24px;
    }

    .form-card {
        padding: 28px 20px;
    }

    .event-title {
        font-size: 2rem;
    }

    .logo {
        width: 110px;
        height: 110px;
    }
}