/* ===================================
   CTDI RSVP — Brand Styles
   Colors: Navy #002c5f, Green #3ab24a, 
           Light Gray #f4f6f9, Dark Text #1C305D
   =================================== */

/* --- Base --- */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    background-color: #f4f6f9;
}

/* --- Navbar --- */
/* (replaced by ctdi-topbar) */

/* --- Unified Top Bar --- */
.ctdi-topbar {
    background-color: #002c5f;
    padding: 16px 20px;
    border-radius: 0;
    margin-bottom: 1.5rem;
    position: relative;
}
.ctdi-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #3ab24a;
}
.ctdi-topbar-brand img {
    height: 55px;
}
.ctdi-topbar-divider {
    border-left: 4px solid #fff;
    height: 50px;
    margin: 0 18px;
}
.ctdi-topbar-title {
    color: #fff;
    font-family: Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
}
.ctdi-topbar-nav {
    display: flex;
    gap: 8px;
}
.ctdi-topbar-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.ctdi-topbar-nav a:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

/* --- Page Title (hidden — now in topbar) --- */
.ctdi-hero { display: none; }
.jumbotron { display: none; }

/* --- Headings --- */
h1.heading-2, h2.heading-2, h3.heading-3 {
    font-family: Arial, sans-serif;
    font-weight: 800;
    color: #1C305D;
}
h4.heading-4 {
    font-family: Arial, sans-serif;
    font-weight: normal;
    color: #1C305D;
}

/* --- RSVP Button --- */
.btn-rsvp {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #3ab24a 0%, #2d8c3a 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    border-radius: 12px;
    padding: 12px 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(58,178,74,0.3);
}
.btn-rsvp:hover, .btn-rsvp:focus {
    background: linear-gradient(135deg, #349f42 0%, #267a32 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58,178,74,0.4);
}
.btn-rsvp:active, .btn-rsvp:visited {
    color: #fff !important;
}

/* --- Event Cards --- */
.event-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
}
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.event-card .card-body { padding: 2rem; }
.event-card .card-body p { margin-bottom: 0.5rem; }
.event-card .card-title {
    color: #1C305D;
    font-weight: 700;
}

/* --- Carousel --- */
.herobanner { margin: 20px 0 10px; }
.herobanner .carousel-inner {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}
.herobanner img {
    border-radius: 20px;
    width: 100%;
    height: auto;
}

/* --- Cards (general) --- */
.card {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
}
.card-header.bg-dark {
    background-color: #002c5f !important;
    border-radius: 12px 12px 0 0;
    color: #fff;
}

/* --- RSVP Form Card --- */
.rsvp-form-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #3ab24a;
    border-radius: 16px;
}
.rsvp-form-card h5 {
    color: #1C305D;
    font-weight: 700;
}

/* --- Status Badges --- */
.badge-confirmed { background-color: #3ab24a; }
.badge-requested { background-color: #ffc107; color: #333; }
.badge-draft { background-color: #6c757d; }
.badge-withdrawn { background-color: #dc3545; }

/* --- Footer --- */
.ctdi-footer {
    background: #002c5f;
    color: rgba(255,255,255,0.7);
    padding: 1.5rem 0;
    margin-top: 3rem;
}
.ctdi-footer a { color: #3ab24a; }

/* --- Misc --- */
.text-ctdi-navy { color: #1C305D; }
.text-ctdi-green { color: #3ab24a; }
.bg-ctdi-navy { background-color: #002c5f; }
.bg-ctdi-green { background-color: #3ab24a; }

/* --- Event date/location --- */
.event-date {
    color: #3ab24a;
    font-weight: 600;
    font-size: 0.95rem;
}
.event-location {
    color: #666;
    font-size: 0.9rem;
}

/* --- Smooth transitions --- */
.card, .btn, .form-control, .form-select {
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    border-color: #3ab24a;
    box-shadow: 0 0 0 0.2rem rgba(58,178,74,0.25);
}

/* Fix link-as-button color on click/visited */
a.btn:active, a.btn:visited, a.btn:focus {
    color: inherit;
}
a.btn-rsvp:active, a.btn-rsvp:visited, a.btn-rsvp:focus,
a.btn-success:active, a.btn-success:visited,
a.btn-primary:active, a.btn-primary:visited {
    color: #fff !important;
}

/* --- Registration page specifics --- */
.guest-table th { 
    color: #1C305D; 
    font-weight: 600;
    border-bottom: 2px solid #002c5f;
}
