/* DESIGN SYSTEM VARIABLES */
:root {
    --primary: #004182; /* EPC Blue */
    --primary-light: #0056ac;
    --primary-dark: #002d5a;
    --accent: #00a3ff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    /* New very round radius for carousel based on image 2 */
    --radius-xxl: 32px; 
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* BASE RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Fix anchor jumps under fixed header */
    scroll-padding-top: 110px;
}

/* Portal-grade focus visibility */
:focus-visible {
    outline: 3px solid rgba(0, 65, 130, 0.22);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* REUSABLE COMPONENTS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: none;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border);
    color: var(--text-dark);
    font-weight: 600;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 65, 130, 0.04);
}

.section-padding {
    padding: 30px 0;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 65, 130, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* HEADER & NAVIGATION */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* UPDATED Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 70px;
    width: auto;
    /* Ensuring the logo fits well */
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-dark);
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 4px;
}

/* Drawer overlay base (JS toggles [hidden] and .active) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-overlay[hidden] {
    display: none;
}

/* HERO SECTION */
.hero {
    padding: 120px 0 100px;
    /* Subtle, premium background gradient */
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%, #f8fafc 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* NEW CAROUSEL STYLES (Replacing image placeholder) */
.hero-media {
    position: relative;
    height: 350px; /* Fixed height for desktop */
    width: 100%;
}

.carousel-container {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xxl); /* Highly rounded corners from image 2 */
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    background: var(--bg-light);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth ease */
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text overlay similar to image 2 */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: var(--white);
    display: flex;
    align-items: flex-end;
}

.carousel-overlay h3 {
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-nav {
    position: absolute;
    bottom: 24px;
    right: 32px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* BOOKING SEARCH BAR */
.search-container {
    margin-top: -80px; /* Overlap hero */
    position: relative;
    z-index: 10;
}

.search-bar {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--border);
}

.search-group {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.search-group:focus-within {
    background: rgba(0, 65, 130, 0.03);
}

.border-left {
    border-left: 1px solid var(--border);
}

.search-group label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.premium-input {
    border: 2px solid transparent;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: transparent;
    width: 100%;
    padding: 0px 0;
    font-family: inherit;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.premium-input:focus {
    border-bottom-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 65, 130, 0.10);
}

.field-error {
    min-height: 18px;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b42318; /* accessible red */
}

.search-result {
    grid-column: 1 / -1;
    background: rgba(0, 65, 130, 0.06);
    border: 1px solid rgba(0, 65, 130, 0.18);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}


.room-request-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.room-request-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.room-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mini-box-input {
    width: 65px;
    height: 34px;
    border: 1px solid #000; /* Strict black border as per request */
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.mini-box-input:focus {
    /* border-color: var(--primary); */
    border: 2px solid var(--primary);
    background: rgba(0, 65, 130, 0.03);
}

/* Ensure the search group doesn't squish */
.person-count-group {
    min-width: 220px;
}


/* Remove default date picker styling blockers */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.btn-search {
    height: auto;
    padding: 18px 36px;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    align-self: stretch;
}

/* FACILITIES */
.section-header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.facility-card {
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.facility-card:hover {
    border-color: transparent;
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.facility-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(0, 65, 130, 0.06);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
    margin-bottom: 28px;
    transition: var(--transition);
}

.facility-card:hover .icon-box {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(360deg);
    transition-duration: 0.6s;
}

.facility-card h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
    font-weight: 700;
}

.facility-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* CONTACT SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.contact-info > p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    margin-top: 40px;
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.detail-item {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary);
    background: var(--white);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.detail-item h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 700;
}

.detail-item p {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.map-container {
    border-radius: var(--radius-xxl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
    height: 500px;
}
.map-container iframe {
    height: 100%;
    filter: grayscale(0.2); /* Subtle premium desaturation */
    transition: var(--transition);
}
.map-container:hover iframe {
    filter: grayscale(0);
}

/* FOOTER */
.footer {
    padding: 24px 0;
    background: var(--text-dark); /* Dark footer for contrast */
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a:hover {
    color: var(--white);
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* MOBILE STYLES */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
        padding-top: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        margin: 0 auto 32px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-media {
        height: 400px;
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 16px 0;
    }
    
    /* Adjust logo size for mobile */
    .brand-logo {
        height: 36px;
    }
    .brand-title {
        font-size: 0.9rem;
    }
    .brand-subtitle {
        font-size: 0.7rem;
    }

    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 85%;
        max-width: 320px;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1001;
        align-items: flex-start;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(30, 41, 59, 0.6); /* Darker overlay */
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .drawer-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero {
        padding-top: 140px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-media {
        height: 300px; /* Smaller carousel on mobile */
    }
    
    .carousel-overlay h3 {
        font-size: 1.25rem;
    }

    .search-container {
        margin-top: -40px;
    }

    .search-bar {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    
    .border-left {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 24px;
    }
    
    .btn-search {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .facility-card {
        padding: 32px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-details {
        padding: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}


/* =====================================================
   Availability + Reserve Modals (Public page)
   ===================================================== */

/* Availability modal */
.avail-backdrop{
  position: fixed; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 40, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  padding: 18px;
}
.avail-modal{
  position: relative;
  width: min(660px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 26px;
  padding: 32px 28px 28px;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
  text-align: center;
  overflow: hidden;
}
.avail-modal::before{
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 26px;
  background: linear-gradient(135deg,
    rgba(0,65,130,.55),
    rgba(0,163,255,.35),
    rgba(0,65,130,.22)
  );
  --webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.avail-modal::after{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 86px;
  background: radial-gradient(1200px 220px at 20% 0%, rgba(0,65,130,.18), transparent 60%),
              radial-gradient(900px 220px at 90% 0%, rgba(0,163,255,.14), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,0));
  pointer-events: none;
}
.avail-row{
  position: relative;
  z-index: 1;
  display:flex;
  justify-content: center;
  gap: 90px;
  font-size: 16px;
  margin-bottom: 18px;
  color: rgba(30,41,59,.85);
}
.avail-row .label{ font-weight: 600; opacity: .75; }
.avail-row .avail-from,
.avail-row .avail-to{ font-size: 18px; font-weight: 800; }
.avail-title{
  position: relative;
  z-index: 1;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 12px 0 10px;
  color: #0f172a;
}
.avail-hint{
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: rgba(30,41,59,.75);
  font-weight: 600;
}
.avail-btn{
  position: relative;
  z-index: 1;
  border: 0;
  background: linear-gradient(135deg, #004182, #005fbf);
  color: #fff;
  padding: 14px 56px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,65,130,.25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.avail-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0,65,130,.32);
  filter: brightness(1.02);
}
.avail-btn:active{ transform: translateY(0); }
.avail-btn[disabled]{
  background: rgba(148,163,184,.65);
  box-shadow: none;
  cursor: not-allowed;
}
.avail-close{
  position:absolute; top: 10px; right: 10px;
  width: 38px; height: 38px;
  border: 1px solid rgba(15,23,42,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.avail-close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}
.avail-backdrop[aria-hidden="false"] .avail-modal{ animation: availPop .22s ease-out both; }
@keyframes availPop{
  from{ opacity: 0; transform: translateY(10px) scale(.985); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 520px){
  .avail-row{ flex-direction: column; align-items: flex-start; gap: 10px; }
  .avail-title{ font-size: 28px; }
  .avail-btn{ width: 100%; }
}

/* Reserve modal */
.app-backdrop{
  position: fixed; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 40, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  padding: 18px;
}
.app-modal{
  width: min(820px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
  overflow: hidden;
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}
.app-head{
  display:flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 14px;
  background: radial-gradient(1200px 220px at 20% 0%, rgba(0,65,130,.18), transparent 60%),
              radial-gradient(900px 220px at 90% 0%, rgba(0,163,255,.14), transparent 55%),
              linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,0));
}
.app-title{ font-size: 22px; font-weight: 900; color:#0f172a; }
.app-sub{ margin-top: 2px; color: rgba(30,41,59,.72); font-weight: 600; font-size: 13px; }
.app-close{
  width: 38px; height: 38px;
  border: 1px solid rgba(15,23,42,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.app-close:hover{ transform: translateY(-1px); background: rgba(255,255,255,.92); box-shadow: 0 14px 28px rgba(0,0,0,.16); }

.app-form{ padding: 18px 22px 12px; overflow: auto; flex: 1; }
.app-grid{ display:grid; gap: 14px; }
.app-grid-2{ grid-template-columns: 1fr 1fr; }
.app-field{ display:flex; flex-direction: column; gap: 8px; }
.app-field-full{ margin-top: 10px; }
.app-field label{ font-weight: 800; font-size: 13px; color: rgba(15,23,42,.86); }
.app-field input,
.app-field select{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.app-field input:focus,
.app-field select:focus{
  border-color: rgba(0,95,191,.55);
  box-shadow: 0 0 0 4px rgba(0,95,191,.14);
}
.app-err{ min-height: 16px; font-size: 12px; color: #b42318; }

.app-persons{
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(15,23,42,.1);
  background: rgba(255,255,255,.6);
  border-radius: 18px;
}
.app-persons-title{ font-weight: 900; margin-bottom: 8px; color:#0f172a; }
.app-persons-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-persons-item{ padding: 10px 12px; border-radius: 14px; background: rgba(0,65,130,.06); font-weight: 700; color:#0f172a; }

.app-actions{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 22px 22px;
  border-top: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.app-submit{
  border: 0;
  background: linear-gradient(135deg, #004182, #005fbf);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(0,65,130,.22);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.app-submit:hover{ transform: translateY(-1px); box-shadow: 0 20px 42px rgba(0,65,130,.28); filter: brightness(1.02); }
.app-cancel{
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.8);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.app-backdrop[aria-hidden="false"] .app-modal{ animation: appPop .22s ease-out both; }
@keyframes appPop{ from{ opacity:0; transform: translateY(10px) scale(.985);} to{ opacity:1; transform:none; } }

@media (max-width: 720px){
  .app-grid-2{ grid-template-columns: 1fr; }
  .app-actions{ flex-direction: column-reverse; }
  .app-submit, .app-cancel{ width: 100%; }
  .app-persons-grid{ grid-template-columns: 1fr; }
}

/* Toast */
.notice{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  min-width: min(420px, calc(100vw - 36px));
  max-width: 520px;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  color: #0f172a;
  font-weight: 800;
  display: none;
}
.notice[data-type="danger"]{ border-color: rgba(176,18,18,.25); }
.notice[data-type="success"]{ border-color: rgba(16,124,73,.25); }
.notice .notice-sub{ display:block; margin-top: 6px; font-size: 12px; font-weight: 700; color: rgba(30,41,59,.75); }

/* Reserve modal - small number inputs */
.app-mini-num{
  width: 72px;
  height: 34px;
  margin-left: 8px;
  text-align: center;
  font-weight: 900;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(255,255,255,.9);
  outline: none;
}
.app-mini-num:focus{
  border-color: rgba(0,95,191,.55);
  box-shadow: 0 0 0 4px rgba(0,95,191,.14);
}

/* NEW: Participant A/C warning box */
.ac-warn{
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(176,18,18,.25);
  background: rgba(255, 232, 232, .65);
  color: #7a1010;
  font-weight: 800;
}
.ac-warn-title{
  font-size: 14px;
  font-weight: 900;
}
.ac-warn-sub{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(122,16,16,.85);
}
