/* ── AC Studios Public Registration Styles ──────────────────────────────
   Restyled to match the AC Studios Photography marketing site (WP theme
   "acstudios"). Design tokens mirror the theme's style.css :root vars.
   Fonts: zuume-edge (Adobe Typekit) display + titillium-web body, with
   Google-Font fallbacks (Oswald / Titillium Web) that load everywhere.
   ---------------------------------------------------------------------- */

:root {
    --red: #DD0000;
    --red-dark: #a00000;
    --blue: #3F98FF;
    --blue-dark: #004EA8;
    --text: #606060;
    --dark: #03142A;
    --light: #F3F5F8;
    --white: #ffffff;
    --grey: #999999;

    --red-gradient: linear-gradient(211deg, #D00 -26.7%, #700 94.63%);
    --blue-gradient: linear-gradient(211deg, #3F98FF -26.7%, #004EA8 94.63%);
    --dark-gradient: linear-gradient(180deg, #061F41 0%, #020E1F 100%);

    --heading: "zuume-edge", "Oswald", "Arial Narrow", sans-serif;
    --font: "titillium-web", "Titillium Web", "Segoe UI", sans-serif;

    --radius: 0;
    --transition: all 0.25s ease;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body.public-body {
    background-color: var(--light);
    font-family: var(--font);
    color: var(--text);
    font-size: 1.0625rem;
    line-height: 1.625;
}

.public-body h1, .public-body h2, .public-body h3,
.public-body h4, .public-body h5 {
    font-family: var(--heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: var(--dark);
}

.public-body h6 {
    font-family: var(--font);
    text-transform: none;
    font-weight: 600;
    font-size: 1.0rem;
    line-height: 1.25;
    color: var(--dark);
}

.public-body a { color: var(--red); text-decoration: none; }
.public-body a:hover { color: var(--red-dark); }

/* ── Header / Footer (structure kept; brand colours applied) ──────────── */
.public-navbar {
    position: relative;
    background: var(--dark-gradient) !important;
    border-bottom: 4px solid var(--red);
    min-height: clamp(60px, 9vw, 84px);
    /* room for the brand badge that drops below the header */
    margin-bottom: clamp(86px, 13vw, 118px) !important;
    overflow: visible;
}

/* Large circular brand badge that overhangs below the header,
   mirroring the marketing site's logo treatment. */
.public-navbar-brand {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    margin: 0 !important;
    padding: 0;
    z-index: 20;
}

.public-logo {
    display: block;
    width: clamp(120px, 22vw, 174px);
    height: auto;
    max-height: none;
    background: var(--white);
    border-radius: 50%;
    padding: clamp(5px, 0.9vw, 9px);
    box-shadow: 0 12px 30px rgba(3, 20, 42, 0.30);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.public-navbar-brand:hover .public-logo {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(3, 20, 42, 0.36);
}

@media (max-width: 767.98px) {
    .public-logo { width: 122px; }
}

.public-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7) !important;
    border-top: 4px solid var(--red);
    font-family: var(--font);
    letter-spacing: 0.02em;
}

/* ── Section headings ─────────────────────────────────────────────────── */
.events-heading {
    font-family: var(--heading);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--dark);
    font-size: clamp(2rem, 5vw, 2.9rem);
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 0.65rem;
}

.events-heading::after {
    content: "";
    display: block;
    width: 68px;
    height: 6px;
    margin: 0.65rem auto 0;
    background: var(--red-gradient);
}

.week-heading {
    font-family: var(--heading);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--dark) !important;
    font-size: 1.35rem;
    border-left: 5px solid var(--red);
    padding-left: 0.6rem;
}

.week-heading .fa-calendar-week { color: var(--red); }

/* ── Event tiles ──────────────────────────────────────────────────────── */
.event-tile {
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #e4e8ee !important;
    border-radius: var(--radius) !important;
    background: var(--white);
}

.event-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(3, 20, 42, 0.16) !important;
    border-color: var(--red) !important;
}

.event-tile.active {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(221, 0, 0, 0.25) !important;
}

.event-tile-name {
    font-family: var(--heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--dark);
    font-size: 1.5rem;
    line-height: 1.1;
}

.event-tile-logo-img {
    border-radius: var(--radius) !important;
}

.event-tile-facility { font-weight: 600; color: var(--dark) !important; line-height: 1.25; }
.event-tile-facility .fa-building { color: var(--red); }
.event-tile-dates .fa-calendar { color: var(--blue); }

/* ── Product tiles ────────────────────────────────────────────────────── */
.product-tile {
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #e4e8ee !important;
    border-radius: var(--radius) !important;
}

.product-tile:hover {
    transform: translateY(-3px);
    border-color: var(--red) !important;
    box-shadow: 0 8px 20px rgba(3, 20, 42, 0.14) !important;
}

.product-tile.active {
    border-color: var(--red) !important;
    background-color: #fff6f6;
    box-shadow: 0 0 0 3px rgba(221, 0, 0, 0.25) !important;
}

.product-tile-name {
    color: var(--dark);
}

.product-tile-desc {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-tile-price { color: var(--red) !important; font-size: 1.1rem; }

/* Sale pricing */
.product-tile { position: relative; }

.product-price-original {
    color: var(--grey);
    text-decoration: line-through;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 0.4rem;
}

.product-price-sale {
    color: var(--red);
    font-weight: 700;
}

.product-sale-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    background: var(--red);
    color: #fff;
    font-family: var(--heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(3, 20, 42, 0.2);
}

/* Magnifier / view-details button on product tiles */
.product-zoom-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 3;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    box-shadow: 0 2px 6px rgba(3, 20, 42, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.product-zoom-btn:hover {
    background: var(--red);
    color: #fff;
    transform: scale(1.08);
}

/* Product detail modal gallery */
.product-gallery-swiper {
    width: 100%;
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-gallery-img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: contain;
    background: var(--light);
}

.product-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
}

.product-gallery-swiper .swiper-button-prev,
.product-gallery-swiper .swiper-button-next {
    color: var(--red);
}

.product-gallery-swiper .swiper-pagination-bullet-active {
    background: var(--red);
}

.product-modal-price {
    font-size: 1.25rem;
    color: var(--red);
}

.product-modal-description {
    color: var(--text);
    line-height: 1.6;
}

.product-tile-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-tile-img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.quickrequest-banner {
    display: block;
    width: 45%;
    max-width: 260px;
    height: auto;
    margin: 0 auto 1.5rem;
}

/* ── Cards / form ─────────────────────────────────────────────────────── */
.form-card {
    border-radius: var(--radius) !important;
    border: 1px solid #e4e8ee !important;
}

.registration-app .form-card-header {
    background-color: var(--white) !important;
    border-bottom: 3px solid var(--red);
    border-radius: 0 !important;
}

.registration-app .form-card-title,
.form-selected-event {
    font-family: var(--heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--dark);
}

.registration-app .form-card-title .fa-user,
.registration-app .form-card-title .fa-images,
.registration-app .form-card-title .fa-clock { color: var(--red); }

.field-label {
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.registration-app .form-control {
    border-radius: var(--radius) !important;
    border: 1px solid #cdd4de;
}

.registration-app .form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 0.2rem rgba(221, 0, 0, 0.18);
}

.registration-app a { color: var(--red); }
.registration-app a:hover { color: var(--red-dark); }

/* ── Buttons (red gradient, sharp corners — theme style) ──────────────── */
.registration-app .btn-success,
.form-submit-btn,
.public-body .btn-primary {
    background: var(--red-gradient) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    color: var(--white) !important;
    font-family: var(--font);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(221, 0, 0, 0.25);
}

.registration-app .btn-success:hover,
.form-submit-btn:hover,
.public-body .btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(221, 0, 0, 0.32);
    color: var(--white) !important;
}

.registration-app .btn-success:disabled,
.form-submit-btn:disabled {
    background: var(--grey) !important;
    box-shadow: none;
    transform: none;
    filter: none;
}

/* Back button → dark ghost matching the theme */
.form-back-btn.btn-outline-secondary {
    border-radius: var(--radius) !important;
    border: 2px solid var(--dark);
    color: var(--dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.form-back-btn.btn-outline-secondary:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

/* ── Thank-you page ───────────────────────────────────────────────────── */
.public-body .fa-check-circle { color: var(--red) !important; }

/* ── Misc / states ────────────────────────────────────────────────────── */
.events-empty .fa-calendar-times { color: var(--grey); }

.events-section,
.form-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.availability-status .alert { animation: fadeInUp 0.3s ease; border-radius: 0; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

input[readonly].form-control { background-color: var(--white); }

@media (max-width: 767.98px) {
    .event-tile .event-tile-body { padding: 1rem; }
    .event-tile .event-tile-name { font-size: 1.25rem; }
    .product-tile .product-tile-body { padding: 0.75rem; }
}
