/* File: assets/css/style.css */

/* ============================================================
   CSS VARIABLES & BASE — Tweak brand identity here
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light {
    --color-primary:       #bd9672;   /* Warm gold — RW brand accent */
    --color-primary-dark:  #a07d5e;   /* Hover/active state */
    --color-dark:          #303133;   /* Header, footer, dark surfaces */
    --color-bg:            #f5f4f2;   /* Page background */
    --color-card:          #ffffff;   /* Form card */
    --color-text:          #2d2d2d;   /* Body copy */
    --color-text-muted:    #6b6b6b;   /* Helper / muted text */
    --color-border:        #ddd8d1;   /* Input borders */
    --color-border-focus:  #bd9672;   /* Focused input ring */
    --color-error:         #c0392b;   /* Validation error */
    --color-success-bg:    #f0ebe4;   /* Success panel bg */

    --font-body:           'Montserrat', sans-serif;
    --font-heading:        'Dancing Script', cursive;

    --radius-sm:           4px;
    --radius-md:           6px;
    --radius-lg:           12px;
    --max-width:           1100px;
    --card-shadow:         0 4px 32px rgba(0, 0, 0, 0.09);
    --transition:          all 0.22s ease;

    /* Base inherited properties */
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* ============================================================
   RESET
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light *,
body.ruffino-whitford-prize-portal .style-light *::before,
body.ruffino-whitford-prize-portal .style-light *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.ruffino-whitford-prize-portal .main-container .row-container .row-parent {
    padding: 0;
}
body.ruffino-whitford-prize-portal .pmax-mobile-phone {
   display:none;
}

body.ruffino-whitford-prize-portal a[href^="tel:"], body.ruffino-whitford-prize-portal a[href^="tel+"], body.ruffino-whitford-prize-portal a[href^="mailto:"] {
    white-space:normal;
}

body.ruffino-whitford-prize-portal .style-light a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

body.ruffino-whitford-prize-portal .style-light img {
    display: block;
    max-width: 100%;
}

/* ============================================================
   CONTAINER
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light .container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light .site-header {
    background: var(--color-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

body.ruffino-whitford-prize-portal .style-light .header-topbar {
    background: rgba(0,0,0,0.18);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

body.ruffino-whitford-prize-portal .style-light .header-topbar .container {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding-block: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.ruffino-whitford-prize-portal .style-light .header-topbar .container a,
body.ruffino-whitford-prize-portal .style-light .header-topbar .container a span{
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 16px;
    display: flex;
    gap: .375rem;
    flex-wrap: wrap;
    transition-duration: .15s;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

body.ruffino-whitford-prize-portal .style-light .header-topbar .container a span svg {
    width: .875rem;
    height: .875rem;
}

body.ruffino-whitford-prize-portal .style-light .header-topbar a:hover { color: var(--color-primary); }

body.ruffino-whitford-prize-portal .style-light .header-brand .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 12px;
}

body.ruffino-whitford-prize-portal .style-light .brand-link { display: flex; align-items: center; }

body.ruffino-whitford-prize-portal .style-light .brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

body.ruffino-whitford-prize-portal .style-light .site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

body.ruffino-whitford-prize-portal .style-light .site-nav a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

body.ruffino-whitford-prize-portal .style-light .site-nav a:hover {
    color: #fff;
    border-bottom-color: var(--color-primary);
}

/* ============================================================
   HERO
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light .hero {
    position: relative;
    background-image: url('/wp-content/uploads/2026/05/ruffino-whitford-prize-portal.jpg');
    background-size: cover;
    background-position: center top;
    color: #fff;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.ruffino-whitford-prize-portal .style-light .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1;
}

body.ruffino-whitford-prize-portal .style-light .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-block: 90px 110px;
}

body.ruffino-whitford-prize-portal .style-light .hero-eyebrow {
    padding: .5rem 1.25rem;
    border: 1px solid rgba(185, 148, 116, 0.5);
    border-radius: 99px;
    background: rgba(189, 150, 114, 0.25);
    color: #ffffff;
    font-size: .75rem;
    line-height: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 20px auto 22px auto;
    gap: .5rem;
    display: inline-flex;
    outline-color: rgba(185, 148, 116, 0.5);
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
    box-sizing: border-box;
    column-gap: 8px;
    row-gap: 8px;
    font-weight: 600;
}

body.ruffino-whitford-prize-portal .style-light .hero-eyebrow svg {
    width: .875rem;
    height: .875rem;
    display: block;
    vertical-align: middle;
}

body.ruffino-whitford-prize-portal .style-light .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 9vw, 6.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin: 0 auto 20px auto;
}

body.ruffino-whitford-prize-portal .style-light .hero-subtitle {
    color: rgba(255,255,255,0.72);
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.625;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-wrap: balance;
}

body.ruffino-whitford-prize-portal .style-light .hero-curve {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    line-height: 0;
}

body.ruffino-whitford-prize-portal .style-light .hero-curve svg {
    display: block;
    width: 100%;
    height: 55px;
}

/* ============================================================
   FORM SECTION
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light .form-section { padding-block: 60px 80px; }

body.ruffino-whitford-prize-portal .style-light .form-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 52px 60px;
    max-width: 860px;
    margin-inline: auto;
}

body.ruffino-whitford-prize-portal .style-light .form-card-header {
    text-align: center;
    margin-bottom: 38px;
}

body.ruffino-whitford-prize-portal .style-light .form-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 8px;
}

body.ruffino-whitford-prize-portal .style-light .form-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light .required-note {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: left;
    margin-bottom: 28px;
}

body.ruffino-whitford-prize-portal .style-light .req-star { color: var(--color-primary); font-weight: 700; }

body.ruffino-whitford-prize-portal .style-light .form-row { margin-bottom: 22px; }

body.ruffino-whitford-prize-portal .style-light .form-row--3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

body.ruffino-whitford-prize-portal .style-light .form-row--submit { margin-top: 24px; padding-top:16px; }

body.ruffino-whitford-prize-portal .style-light .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.ruffino-whitford-prize-portal .style-light .form-group label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
}

body.ruffino-whitford-prize-portal .style-light .form-group input[type="text"],
body.ruffino-whitford-prize-portal .style-light .form-group input[type="email"],
body.ruffino-whitford-prize-portal .style-light .form-group input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
}

body.ruffino-whitford-prize-portal .style-light .form-group input:focus,
body.ruffino-whitford-prize-portal .style-light input:not([type='submit']):not([type='button']):not([type='number']):not([type='checkbox']):not([type='radio']):focus{
    border-color: var(--color-border-focus) !important;
    box-shadow: 0 0 0 3px rgba(189,150,114,0.16);
}

body.ruffino-whitford-prize-portal .style-light .form-group input::placeholder { color: #bbb; font-size: 16px; }

body.ruffino-whitford-prize-portal .style-light .form-group input.input-error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

body.ruffino-whitford-prize-portal .style-light .field-error {
    display: block;
    font-size: 12px;
    color: var(--color-error);
    font-weight: 500;
    min-height: 16px;
}

/* ============================================================
   CUSTOM CHECKBOX
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light .form-group--checkbox { padding-top: 6px; }

body.ruffino-whitford-prize-portal .style-light .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

body.ruffino-whitford-prize-portal .style-light .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

body.ruffino-whitford-prize-portal .style-light .checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.ruffino-whitford-prize-portal .style-light .checkbox-custom::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    opacity: 0;
    transition: opacity 0.15s ease;
}

body.ruffino-whitford-prize-portal .style-light .checkbox-label input:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

body.ruffino-whitford-prize-portal .style-light .checkbox-label input:checked + .checkbox-custom::after { opacity: 1; }

body.ruffino-whitford-prize-portal .style-light .checkbox-label input:focus-visible + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(189,150,114,0.28);
}

body.ruffino-whitford-prize-portal .style-light .checkbox-custom.input-error { border-color: var(--color-error); }

body.ruffino-whitford-prize-portal .style-light .checkbox-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.55;
    padding-top: 1px;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light .btn-submit,
body.ruffino-whitford-prize-portal .style-light button[type="submit"]:not(.btn-custom-typo):not(.btn-inherit).btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 52px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);

    font-size: 1rem;
    line-height: 1rem;
}

body.ruffino-whitford-prize-portal .style-light .btn-submit:hover,
body.ruffino-whitford-prize-portal .style-light button[type="submit"]:not(.btn-custom-typo):not(.btn-inherit).btn-submit:hover{
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(189,150,114,0.38);
}

body.ruffino-whitford-prize-portal .style-light .btn-submit:active, body.ruffino-whitford-prize-portal .style-light button[type="submit"]:not(.btn-custom-typo):not(.btn-inherit).btn-submit:active { transform: translateY(0); box-shadow: none; }
body.ruffino-whitford-prize-portal .style-light .btn-submit:disabled, body.ruffino-whitford-prize-portal .style-light button[type="submit"]:not(.btn-custom-typo):not(.btn-inherit).btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light .success-message {
    text-align: center;
    padding: 64px 24px;
    animation: fadeInUp 0.55s ease both;
}

body.ruffino-whitford-prize-portal .style-light .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--color-success-bg);
    color: var(--color-primary);
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 24px;
}

body.ruffino-whitford-prize-portal .style-light .success-heading {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--color-text);
    margin-bottom: 14px;
}

body.ruffino-whitford-prize-portal .style-light .success-body {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 440px;
    margin-inline: auto;
    line-height: 1.85;
}

/* Keyframes remain unscoped as they define an animation, not an element */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ============================================================
   FOOTER
   ============================================================ */
body.ruffino-whitford-prize-portal .style-light .site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.6);
}

body.ruffino-whitford-prize-portal .style-light .site-footer .container { padding-block: 56px 0; }

body.ruffino-whitford-prize-portal .style-light .footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.ruffino-whitford-prize-portal .style-light .footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

body.ruffino-whitford-prize-portal .style-light .footer-blurb {
    font-size: 13px;
    line-height: 1.85;
    color: rgba(255,255,255,0.42);
    text-align: left;
}

body.ruffino-whitford-prize-portal .style-light .footer-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 14px;
    font-family: var(--font-body);
}

body.ruffino-whitford-prize-portal .style-light .footer-address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.95;
    color: rgba(255,255,255,0.48);
}

body.ruffino-whitford-prize-portal .style-light .footer-address a:hover { color: var(--color-primary); }

body.ruffino-whitford-prize-portal .style-light .footer-bottom {
    padding-block: 20px;
    text-align: center;
}

body.ruffino-whitford-prize-portal .style-light .footer-bottom p {
    color: rgba(255,255,255,0.28);
    font-size: .75rem;
    line-height: 1rem;
    letter-spacing: 0.05em;
}

/* ============================================================
   INITIAL LOAD ANIMATIONS
   ============================================================ */

/* Apply the fade-in-up animation and hide elements initially */
body.ruffino-whitford-prize-portal .style-light .hero-content,
body.ruffino-whitford-prize-portal .style-light .form-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger the form card to animate in slightly after the hero text */
body.ruffino-whitford-prize-portal .style-light .form-card {
    animation-delay: 0.25s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    body.ruffino-whitford-prize-portal .style-light .form-card { padding: 40px 36px; }
    body.ruffino-whitford-prize-portal .style-light .footer-grid { grid-template-columns: 1fr 1fr; }
    body.ruffino-whitford-prize-portal .style-light .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
    body.ruffino-whitford-prize-portal .style-light .container {
        padding-inline: 10px;
    }
    body.ruffino-whitford-prize-portal .style-light .hero-curve svg {
        height: auto;
    }
}

@media (max-width: 640px) {
    body.ruffino-whitford-prize-portal .style-light .header-topbar .container {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 10px;
    }

    body.ruffino-whitford-prize-portal .style-light .header-topbar .container a {
        justify-content: center;
    }

    body.ruffino-whitford-prize-portal .style-light .site-nav { display: none; }
    body.ruffino-whitford-prize-portal .style-light .hero-content { padding-block: 70px 95px; }
    body.ruffino-whitford-prize-portal .style-light .form-card { padding: 28px 20px; }
    body.ruffino-whitford-prize-portal .style-light .form-row--3col { grid-template-columns: 1fr; gap: 16px; }
    body.ruffino-whitford-prize-portal .style-light .form-title { font-size: 2.3rem; }
    body.ruffino-whitford-prize-portal .style-light .btn-submit { width: 100%; }
    body.ruffino-whitford-prize-portal .style-light .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    body.ruffino-whitford-prize-portal .style-light .hero-subtitle {
        max-width: 375px;
    }
    body.ruffino-whitford-prize-portal .style-light .brand-link {
        margin: 0 auto;
    }
}

@media (min-width: 1500px) {
    body.ruffino-whitford-prize-portal .style-light .hero-title {
        max-width: 400px;
    }
}