/* assets/css/webinar-details.css
   Styles for the individual webinar detail page (webinar-details.php).
   Reuses the color tokens from webinar-styles.css so it matches the
   rest of the webinars section. */

.wd-hero {
    background: linear-gradient(135deg, rgba(26,54,93,0.97) 0%, rgba(43,116,158,0.95) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}
.wd-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}
.wd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.wd-badge--upcoming { background: rgba(255,255,255,0.15); color: #fff; }
.wd-badge--past { background: rgba(230,126,34,0.2); color: #f39c12; }

.wd-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.25;
    margin: 0 0 1.25rem;
}

.wd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}
.wd-meta i { color: #f39c12; margin-right: 0.4rem; }

.wd-body {
    background: #fff;
    padding: 3.5rem 0 5rem;
}
.wd-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 3rem;
    align-items: start;
}

.wd-hero-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.wd-lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #4a5568;
    margin-bottom: 2rem;
}
.wd-lead a { color: #2b749e; font-weight: 600; }

.wd-section { margin-bottom: 2rem; }
.wd-section h2 {
    color: #1a365d;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.wd-bullets { list-style: none; margin: 0; padding: 0; }
.wd-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: #4a5568;
    line-height: 1.6;
    border-bottom: 1px solid #f0f2f5;
}
.wd-bullets li:last-child { border-bottom: none; }
.wd-bullets i { color: #2b749e; margin-top: 0.25rem; flex-shrink: 0; }

.wd-key-takeaway {
    display: flex;
    gap: 1rem;
    background: #e0f2ff;
    border-left: 4px solid #2b749e;
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}
.wd-key-takeaway i { color: #2b749e; font-size: 1.4rem; margin-top: 0.15rem; }
.wd-key-takeaway p { margin: 0; color: #1a365d; line-height: 1.6; }

.wd-back-link { margin-top: 2rem; }
.wd-back-link a {
    color: #2b749e;
    font-weight: 600;
    text-decoration: none;
}
.wd-back-link a:hover { text-decoration: underline; }

/* Sticky form card */
.wd-form-col { position: relative; }
/* Card has a subtle top accent bar tying it to the hero gradient */
.wd-form-card {
    position: sticky;
    top: 100px;
    border: 1px solid #e8ecef;
    border-top: 4px solid transparent;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    box-sizing: border-box;
    overflow: hidden;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #1a365d, #2b749e);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.wd-form-card h3 {
    color: #1a365d;
    font-size: 1.3rem;
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.wd-form-card h3 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(43,116,158,0.1);
    color: #2b749e;
    font-size: 0.95rem;
}
.wd-form-sub {
    color: #4a5568;
    font-size: 0.92rem;
    margin: 0 0 1.6rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #eef1f4;
}

.wd-message-box {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
}
.wd-message-box.alert-success { display: block; background: #d1fae5; color: #065f46; }
.wd-message-box.alert-danger { display: block; background: #fee2e2; color: #991b1b; }

/* ------------------------------------------------------------------
   Sidebar form fields
   Scoped to .wd-form-card so the main webinars.php modal form is
   completely unaffected. Also defensively sets box-sizing since the
   base .form-group input rule (width:100% + padding + border) will
   overflow its container without it.
   ------------------------------------------------------------------ */
.wd-form-card * { box-sizing: border-box; }

.wd-form-card .form-group { margin-bottom: 1.35rem; }

.wd-form-card .form-group label {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.wd-input-wrap { position: relative; }

.wd-input-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa8b8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.25s ease;
}

.wd-form-card .form-group input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.wd-form-card .form-group input::placeholder { color: #a0aec0; }

.wd-form-card .form-group input:hover {
    border-color: #cbd5e1;
}

.wd-form-card .form-group input:focus {
    background: #ffffff;
    border-color: #2b749e;
    box-shadow: 0 0 0 4px rgba(43,116,158,0.12);
}

.wd-input-wrap:focus-within i { color: #2b749e; }

.wd-form-card .form-group input.error {
    border-color: #8a1719;
    background: #fff8f8;
}

.wd-form-card .error-msg {
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.wd-form-card .recaptcha-container {
    margin: 0.25rem 0 1.5rem;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.wd-form-card .submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 9px;
}

@media (max-width: 900px) {
    .wd-grid { grid-template-columns: 1fr; }
    .wd-form-card { position: static; }
}

@media (max-width: 400px) {
    .wd-form-card { padding: 1.75rem 1.25rem; }
    .wd-form-card .recaptcha-container > div {
        transform: scale(0.87);
        transform-origin: 0 0;
    }
}
