/**
 * Ryan Nogar Guestlist Form
 * Custom Stylesheet
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --color-bg: #000;
    --color-text: #fff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-text-subtle: rgba(255, 255, 255, 0.5);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-error: #fca5a5;
    --color-danger: #dc3545;
    --color-btn-bg: #4c4c4c;
    --color-btn-text: #cacaca;
    --font-primary: "Geist", sans-serif;
    --radius-default: 8px;
    --radius-card: 20px;
    --radius-img: 22px;
    --transition-default: 0.3s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100vw;
    overflow-x: hidden;
    background-color: var(--color-bg);
    font-family: var(--font-primary);
    color: var(--color-text);
    font-size: 16px;
    position: relative;
    min-height: 100vh;
}

/* ============================================
   CLUBBING ANIMATED GLOW EFFECTS
   ============================================ */

/* Primary Glow - Purple/Blue - Moves across screen */
body::before {
    content: '';
    position: fixed;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse 60% 60% at 50% 50%,
            rgba(138, 43, 226, 0.5) 0%,
            rgba(75, 0, 130, 0.3) 30%,
            rgba(148, 0, 211, 0.15) 50%,
            transparent 70%);
    animation:
        moveGlow1 20s ease-in-out infinite,
        colorShift1 12s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

/* Secondary Glow - Green/Cyan - Moves opposite direction */
body::after {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 50% 50% at 50% 50%,
            rgba(0, 255, 127, 0.4) 0%,
            rgba(0, 206, 209, 0.25) 35%,
            rgba(30, 144, 255, 0.1) 55%,
            transparent 70%);
    animation:
        moveGlow2 25s ease-in-out infinite,
        colorShift2 15s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

/* Movement Animation 1 - Top right to bottom left and around */
@keyframes moveGlow1 {
    0% {
        top: -60%;
        right: -40%;
        transform: scale(1);
    }

    20% {
        top: -20%;
        right: 10%;
        transform: scale(1.1);
    }

    40% {
        top: 30%;
        right: 40%;
        transform: scale(0.9);
    }

    60% {
        top: 60%;
        right: -20%;
        transform: scale(1.15);
    }

    80% {
        top: 20%;
        right: -50%;
        transform: scale(0.95);
    }

    100% {
        top: -60%;
        right: -40%;
        transform: scale(1);
    }
}

/* Movement Animation 2 - Different path for variety */
@keyframes moveGlow2 {
    0% {
        top: 80%;
        left: -40%;
        transform: scale(0.9) rotate(0deg);
    }

    25% {
        top: 20%;
        left: 20%;
        transform: scale(1.2) rotate(5deg);
    }

    50% {
        top: -30%;
        left: 60%;
        transform: scale(0.8) rotate(-3deg);
    }

    75% {
        top: 40%;
        left: 80%;
        transform: scale(1.1) rotate(2deg);
    }

    100% {
        top: 80%;
        left: -40%;
        transform: scale(0.9) rotate(0deg);
    }
}

/* Color Shift 1 - Purple → Blue → Pink → Magenta cycle */
@keyframes colorShift1 {

    0%,
    100% {
        filter: hue-rotate(0deg) saturate(1.2) brightness(1);
    }

    25% {
        filter: hue-rotate(60deg) saturate(1.4) brightness(1.1);
    }

    50% {
        filter: hue-rotate(120deg) saturate(1.3) brightness(0.9);
    }

    75% {
        filter: hue-rotate(-40deg) saturate(1.5) brightness(1.2);
    }
}

/* Color Shift 2 - Green → Cyan → Blue → Teal cycle */
@keyframes colorShift2 {

    0%,
    100% {
        filter: hue-rotate(0deg) saturate(1.3) brightness(1.1);
    }

    33% {
        filter: hue-rotate(-60deg) saturate(1.5) brightness(1.3);
    }

    66% {
        filter: hue-rotate(80deg) saturate(1.2) brightness(1);
    }
}

section {
    position: relative;
    padding-top: 60px;
    padding-bottom: 60px;
    z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text);
}

/* ============================================
   PROFILE SECTION - LIQUID GLASS EFFECT
   ============================================ */
.profileImg {
    position: relative;
    padding: 8px;
    border-radius: 24px;

    /* Liquid glass background */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.1) 100%);

    /* Glass blur */
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);

    /* Glowing border */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 60px -15px rgba(138, 43, 226, 0.2),
        0 0 40px -10px rgba(0, 255, 127, 0.15);

    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Inner glow effect */
.profileImg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Animated shimmer */
.profileImg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 60%);
    animation: profileShimmer 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes profileShimmer {

    0%,
    100% {
        transform: translate(-20%, -20%) rotate(0deg);
    }

    50% {
        transform: translate(20%, 20%) rotate(10deg);
    }
}

.profileImg:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 80px -15px rgba(138, 43, 226, 0.3),
        0 0 60px -10px rgba(0, 255, 127, 0.2);
}

.profileImg img {
    border-radius: 18px;
    position: relative;
    z-index: 0;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.pageTitle {
    font-size: 42px;
    letter-spacing: -1.5px !important;
    line-height: 49px !important;
    font-family: var(--font-primary);
    font-weight: bold;
}

.subTitle {
    color: rgba(255, 255, 255, 0.8);
}

.text-gray {
    color: var(--color-text-muted);
}

.consent {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 25px;
    text-align: center;
}

/* ============================================
   FORM CONTAINER - iOS 26 LIQUID GLASS EFFECT
   ============================================ */
.form-container {
    position: relative;
    padding: 35px;
    border-radius: 28px;
    margin-top: 40px;

    /* Multi-layer glass background */
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.08) 100%);

    /* Heavy blur for liquid glass look */
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);

    /* Glowing border effect */
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 0 80px -20px rgba(138, 43, 226, 0.15),
        0 0 60px -15px rgba(0, 255, 127, 0.1);

    /* Smooth transitions */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

/* Inner glow/refraction effect */
.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 40%,
            transparent 100%);
    border-radius: 28px 28px 0 0;
    pointer-events: none;
}

/* Subtle animated shimmer */
.form-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 60%);
    animation: liquidShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidShimmer {

    0%,
    100% {
        transform: translate(-10%, -10%) rotate(0deg);
    }

    50% {
        transform: translate(10%, 10%) rotate(5deg);
    }
}

/* Hover state - slight lift */
.form-container:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 0 100px -20px rgba(138, 43, 226, 0.2),
        0 0 80px -15px rgba(0, 255, 127, 0.15);
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header img {
    max-width: 100%;
    margin-bottom: 15px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-text);
}

.form-label-top {
    width: 100%;
    margin-left: 2px;
    margin-bottom: 14px;
}

.form-sub-label {
    font-size: .75em;
    margin-top: 11px;
    margin-left: 2px;
    display: block;
    word-break: break-word;
}

/* ============================================
   FORM CONTROLS
   ============================================ */
.form-control,
.form-select,
textarea {
    border-radius: var(--radius-default);
    width: 100%;
    color: var(--color-text) !important;
    background-color: transparent;
    border: solid 2px var(--color-border);
    border-spacing: 2px;
    transition: border-color var(--transition-default);
}

.form-control:focus,
.form-select:focus {
    background: transparent;
    color: var(--color-text);
    box-shadow: none;
    border-color: var(--color-text);
    outline: none;
}

/* Live Validation States */
.form-control.is-valid,
.form-select.is-valid {
    border-color: #22c55e !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322c55e' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 40px;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #ef4444 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23ef4444' stroke-width='2'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4 3.2h-.4m0 1.6h.01' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 40px;
}

.live-error {
    color: var(--color-error);
    font-size: 0.75em;
    font-weight: 600;
    margin-top: 5px;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-subtle);
    font-style: italic;
}

/* Select Styling */
select.form-select {
    color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-select option {
    background-color: black;
    color: white;
}

select.form-select option:checked {
    color: white;
}

/* Date Input */
.date-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-date {
    padding: .375rem 40px .375rem .75rem;
    background-color: transparent;
    color: var(--color-text-subtle);
    width: 100%;
}

.custom-date:valid {
    color: var(--color-text);
}

.custom-date::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 10px;
    z-index: 2;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    pointer-events: none;
    font-size: 18px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background-color: var(--color-btn-bg);
    color: var(--color-btn-text) !important;
    border: none;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color var(--transition-default), transform var(--transition-default);
}

.btn-primary:hover {
    background-color: #5c5c5c;
    color: var(--color-btn-text) !important;
    transform: translateY(-1px);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    outline: none;
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   PARSLEY VALIDATION
   ============================================ */
.parsley-errors-list {
    margin: 0;
    padding: 0;
}

.parsley-errors-list>li {
    font-size: .75em;
    list-style: none;
    color: var(--color-error);
    margin-top: 5px;
    padding-left: 0;
    font-weight: 600;
    position: relative;
}

.parsley-errors-list>li:first-child {
    display: block;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.socialIcon {
    margin-top: 10px;
}

.socialIcon a {
    font-size: 14px;
    color: #666666;
    padding: 8px 0;
    transition: color var(--transition-default);
}

.socialIcon a:hover {
    color: var(--color-text);
}

.socialIcon a:focus {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.bottomGradient {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

/* ============================================
   ALERT STYLES
   ============================================ */
.alert {
    border-radius: var(--radius-default);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 767px) {
    .bottomGradient {
        display: none;
    }

    .profileImg {
        padding: 5px;
        background: var(--color-border);
        border-radius: var(--radius-img);
        width: 200px;
        margin: auto;
    }

    .profileImg img {
        border-radius: var(--radius-img);
        width: 100%;
    }

    .socialIcon {
        margin-bottom: 40px;
        margin-top: 20px;
    }

    .socialIcon a {
        font-size: 16px;
        color: var(--color-text);
    }

    .pageTitle {
        font-size: 32px;
        line-height: 38px !important;
    }

    .form-container {
        padding: 20px;
    }
}

/* ============================================
   ACCESSIBILITY: FOCUS STATES
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-text);
    color: var(--color-bg);
    padding: 10px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}