/* ==========================================================================
   Oil Mill Conclave — Registration
   Design system: "trade token" — a stamped registration ticket
   ========================================================================== */

:root {

    --paper:       #F6EFDE;
    --paper-deep:  #EDE1C6;
    --card:        #FFFDF8;

    --ink:         #2B2119;
    --ink-soft:    #5B5044;
    --ink-faint:   #8A7E6C;

    --rust:        #A6431B;
    --rust-deep:   #7C3113;
    --rust-tint:   #F1DDD0;

    --mustard:     #C99A32;
    --mustard-deep:#9C7622;
    --mustard-tint:#F3E7C7;

    --olive:       #4F5B34;

    --line:        #DED0AE;
    --line-soft:   #EAE0C6;

    --danger:      #8C2F24;
    --danger-tint: #F6E2DE;
    --success:     #3F5C33;
    --success-tint:#E4EDDD;

    --radius-lg: 22px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-card: 0 24px 60px -20px rgba(43, 33, 25, 0.35);
}


/* --------------------------------------------------------------------
   Reset & base
-------------------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {

    margin: 0;

    background:
        radial-gradient(1200px 500px at 15% -10%, #FBF4E2 0%, transparent 60%),
        var(--paper);

    color: var(--ink);

    font-family: "Work Sans", "Segoe UI", Arial, sans-serif;

    font-size: 15px;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

}

h1, h2, h3 {
    font-family: "Zilla Slab", Georgia, serif;
    margin: 0;
}

.mono {
    font-family: "JetBrains Mono", "Courier New", monospace;
}

a {
    color: var(--rust);
}

::selection {
    background: var(--mustard-tint);
    color: var(--rust-deep);
}


/* --------------------------------------------------------------------
   Page shell
-------------------------------------------------------------------- */

.page-wrapper {
    padding: 56px 16px;
}

.registration-card {

    width: 100%;

    max-width: 880px;

    margin: 0 auto;

    background: var(--card);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);

    overflow: hidden;

    border: 1px solid var(--line-soft);

}


/* --------------------------------------------------------------------
   Header — the "token face"
-------------------------------------------------------------------- */

.event-header {

    position: relative;

    background:
        radial-gradient(680px 340px at 82% -20%, rgba(201, 154, 50, 0.35), transparent 60%),
        linear-gradient(160deg, #2B2119 0%, #3A2A1B 55%, #4A3018 100%);

    color: var(--paper);

    padding: 46px 44px 34px;

    overflow: hidden;

}

.event-header::before {

    /* faint mill-wheel motif */

    content: "";

    position: absolute;

    right: -70px;

    top: -70px;

    width: 260px;

    height: 260px;

    border-radius: 50%;

    border: 2px solid rgba(246, 239, 222, 0.14);

    background:
        repeating-conic-gradient(
            rgba(246, 239, 222, 0.08) 0deg 6deg,
            transparent 6deg 30deg
        );

    pointer-events: none;

}

.crest {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
 
.crest-ribbon {
 
    position: relative;
 
    display: inline-flex;
 
    align-items: center;
 
    justify-content: center;
 
    width: 64px;
 
    height: 64px;
 
    background: linear-gradient(160deg, #FFFEFB, #FBEACA);
 
    border-radius: 50%;
 
    overflow: hidden;
 
    box-shadow:
        0 0 0 3px var(--gold-deep),
        0 0 0 6px rgba(245, 203, 92, 0.5),
        0 10px 22px -8px rgba(22, 28, 59, 0.55);
 
}
 
.crest-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
.eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-family: "JetBrains Mono", monospace;

    font-size: 11px;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    color: var(--mustard-tint);

    background: rgba(246, 239, 222, 0.08);

    border: 1px solid rgba(246, 239, 222, 0.2);

    padding: 6px 12px;

    border-radius: 999px;

    margin-bottom: 18px;

}

.eyebrow::before {

    content: "";

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: var(--mustard);

}

.event-header h1 {

    font-size: 38px;

    font-weight: 700;

    letter-spacing: -0.01em;

    margin-bottom: 8px;

}

.event-header h2 {

    font-family: "Work Sans", sans-serif;

    font-size: 15.5px;

    font-weight: 400;

    color: rgba(246, 239, 222, 0.78);

    margin-bottom: 26px;

}

.event-header h2 strong {
    color: var(--paper);
    font-weight: 600;
}

.event-info {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}

.event-info span {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: rgba(246, 239, 222, 0.08);

    border: 1px dashed rgba(246, 239, 222, 0.32);

    padding: 9px 14px;

    border-radius: var(--radius-sm);

    font-size: 13px;

    color: var(--paper);

}


/* --------------------------------------------------------------------
   Ticket perforation — the signature divider
-------------------------------------------------------------------- */

.ticket-divider {

    position: relative;

    height: 26px;

    background: linear-gradient(160deg, #4A3018 0%, #5B3A1E 100%);

}

.ticket-divider::after {

    content: "";

    position: absolute;

    inset: 0;

    background-image:
        radial-gradient(circle at 12px 0, var(--card) 7px, transparent 7.5px);

    background-size: 24px 26px;

    background-repeat: repeat-x;

    background-position: 0 center;

}


/* --------------------------------------------------------------------
   Intro
-------------------------------------------------------------------- */

.intro {

    padding: 30px 44px 6px;

    text-align: center;

}

.intro h3 {

    color: var(--rust);

    font-size: 24px;

    font-weight: 600;

    margin-bottom: 12px;

}

.intro p {

    color: var(--ink-soft);

    line-height: 1.75;

    margin: 0 auto;

    max-width: 620px;

    font-size: 14.5px;

}


/* --------------------------------------------------------------------
   Alerts
-------------------------------------------------------------------- */

.alert-box {

    margin: 26px 44px 0;

    padding: 16px 20px;

    border-radius: var(--radius-md);

    font-size: 14px;

    line-height: 1.6;

}

.alert-success {

    background: var(--success-tint);

    border: 1px solid #C7D8B9;

    color: var(--success);

}

.alert-error {

    background: var(--danger-tint);

    border: 1px solid #E3BDB3;

    color: var(--danger);

}

.alert-error strong {
    display: block;
    margin-bottom: 6px;
}

.alert-error ul {

    margin: 4px 0 0;

    padding-left: 20px;

}


/* --------------------------------------------------------------------
   Form section
-------------------------------------------------------------------- */

.form-section {

    padding: 30px 44px 46px;

}

.section-title {

    display: flex;

    align-items: center;

    gap: 14px;

    margin: 42px 0 24px;

}

.section-title:first-child {
    margin-top: 6px;
}

.stamp-number {

    flex: none;

    width: 34px;

    height: 34px;

    border-radius: 50%;

    background: var(--rust);

    color: var(--paper);

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: "JetBrains Mono", monospace;

    font-size: 13px;

    font-weight: 700;

    box-shadow: 0 0 0 3px var(--rust-tint);

}

.section-title h4 {

    font-family: "Zilla Slab", serif;

    font-size: 19px;

    font-weight: 600;

    color: var(--ink);

    margin: 0;

    flex: 1;

    border-bottom: 1px solid var(--line);

    padding-bottom: 12px;

}


/* --------------------------------------------------------------------
   Fields
-------------------------------------------------------------------- */

.grid-2 {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 22px 26px;

}

.field {

    display: flex;

    flex-direction: column;

}

.field.full {
    grid-column: 1 / -1;
}

.field label {

    font-size: 13px;

    font-weight: 600;

    color: var(--ink);

    margin-bottom: 8px;

}

.required {
    color: var(--rust);
}

.input,
.select,
.textarea {

    width: 100%;

    min-height: 48px;

    padding: 0 15px;

    border: 1.5px solid var(--line);

    border-radius: var(--radius-sm);

    background: var(--card);

    font-family: inherit;

    font-size: 14px;

    color: var(--ink);

    transition: border-color 0.15s ease, box-shadow 0.15s ease;

}

.textarea {

    min-height: 100px;

    padding: 13px 15px;

    resize: vertical;

}

.select {
    cursor: pointer;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
        linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) center,
        calc(100% - 15px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.input:focus,
.select:focus,
.textarea:focus {

    outline: none;

    border-color: var(--rust);

    box-shadow: 0 0 0 4px var(--rust-tint);

}

.input::placeholder,
.textarea::placeholder {
    color: var(--ink-faint);
}

.hint {

    color: var(--ink-faint);

    font-size: 12px;

    margin-top: 6px;

}


/* --------------------------------------------------------------------
   File upload (custom)
-------------------------------------------------------------------- */

.file-field {

    position: relative;

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 48px;

    border: 1.5px dashed var(--line);

    border-radius: var(--radius-sm);

    background: var(--paper-deep);

    padding: 0 15px;

}

.file-field input[type="file"] {

    position: absolute;

    inset: 0;

    opacity: 0;

    cursor: pointer;

}

.file-field .file-btn {

    flex: none;

    background: var(--ink);

    color: var(--paper);

    font-size: 12.5px;

    font-weight: 600;

    padding: 8px 14px;

    border-radius: 6px;

}

.file-field .file-name {

    font-size: 13px;

    color: var(--ink-faint);

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* --------------------------------------------------------------------
   Category grid
-------------------------------------------------------------------- */

.category-box {

    background: var(--paper-deep);

    border: 1px solid var(--line);

    border-radius: var(--radius-md);

    padding: 22px;

}

.category-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 13px 20px;

}

.option {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    cursor: pointer;

    font-size: 14px;

    color: var(--ink);

}

.option input {

    accent-color: var(--rust);

    width: 17px;

    height: 17px;

    margin-top: 1px;

    flex: none;

    cursor: pointer;

}

#otherCategoryBox {

    display: none;

    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px dashed var(--mustard-deep);

}


/* --------------------------------------------------------------------
   Membership box
-------------------------------------------------------------------- */

.membership-box {

    background: var(--mustard-tint);

    border: 1px solid #E0C888;

    border-radius: var(--radius-md);

    padding: 22px;

}

.membership-box p {

    color: var(--ink-soft);

    font-size: 14px;

    line-height: 1.7;

    margin: 0 0 16px;

}

.membership-box .option {
    margin-bottom: 10px;
}

.membership-box .option:last-child {
    margin-bottom: 0;
}


/* --------------------------------------------------------------------
   Fee stamp
-------------------------------------------------------------------- */

.price-box {

    display: flex;

    align-items: center;

    justify-content: center;

    margin-top: 36px;

    padding: 30px 20px;

}

.price-stamp {

    position: relative;

    display: inline-flex;

    flex-direction: column;

    align-items: center;

    gap: 4px;

    padding: 22px 40px;

    border: 3px solid var(--rust);

    border-radius: 50% / 40%;

    transform: rotate(-3deg);

    color: var(--rust);

}

.price-stamp::before {

    content: "";

    position: absolute;

    inset: 6px;

    border: 1px solid var(--rust);

    border-radius: 50% / 40%;

}

.price-label {

    font-family: "JetBrains Mono", monospace;

    font-size: 10.5px;

    letter-spacing: 0.14em;

    text-transform: uppercase;

    color: var(--rust-deep);

}

.price {

    font-family: "JetBrains Mono", monospace;

    font-size: 30px;

    font-weight: 700;

}


/* --------------------------------------------------------------------
   Terms + submit
-------------------------------------------------------------------- */

.terms-row {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 30px;

    font-size: 13.5px;

    color: var(--ink-soft);

}

.terms-row input {
    accent-color: var(--rust);
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex: none;
    cursor: pointer;
}

.submit-row {

    text-align: center;

    margin-top: 30px;

}

.submit-btn {

    background: var(--rust);

    border: none;

    color: var(--paper);

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 0.01em;

    padding: 15px 44px;

    border-radius: 999px;

    cursor: pointer;

    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;

    box-shadow: 0 14px 30px -12px rgba(166, 67, 27, 0.6);

}

.submit-btn:hover {

    background: var(--rust-deep);

    transform: translateY(-2px);

    box-shadow: 0 18px 34px -12px rgba(124, 49, 19, 0.55);

}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:focus-visible {
    outline: 3px solid var(--mustard);
    outline-offset: 3px;
}


/* --------------------------------------------------------------------
   Footer
-------------------------------------------------------------------- */

.footer-note {

    border-top: 1px solid var(--line-soft);

    color: var(--ink-faint);

    font-size: 12.5px;

    padding: 20px;

    text-align: center;

    background: var(--paper-deep);

}


/* --------------------------------------------------------------------
   Reduced motion
-------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .submit-btn {
        transition: none;
    }

}


/* --------------------------------------------------------------------
   Mobile
-------------------------------------------------------------------- */

@media (max-width: 720px) {

    .page-wrapper {
        padding: 20px 10px;
    }

    .event-header {
        padding: 34px 24px 26px;
    }

    .event-header h1 {
        font-size: 28px;
    }

    .event-info span {
        width: 100%;
    }

    .intro {
        padding: 26px 22px 4px;
    }

    .intro h3 {
        font-size: 21px;
    }

    .alert-box {
        margin: 22px 22px 0;
    }

    .form-section {
        padding: 24px 22px 34px;
    }

    .grid-2,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .price {
        font-size: 25px;
    }

    .price-stamp {
        padding: 18px 30px;
    }

    .submit-btn {
        width: 100%;
    }

}