/*
 * Peer-to-Peer template styles.
 * Theme override: copy to {theme}/medevents-events/templates/event-detail/peer-to-peer/style.css
 */

/* ── Hero Banner ────────────────────────────────────────────────────────── */
.p2p-hero-banner {
    min-height: 220px;
    background-color: var(--primary-bg-color, #2695D0);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.p2p-hero-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.p2p-hero-icon {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
}

.p2p-hero-text {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.p2p-hero-label {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .9;
}

.p2p-hero-btn {
    background-color: #fff;
    color: var(--primary-bg-color, #2695D0);
    border: 2px solid #fff;
    border-radius: 2rem;
    padding: .5rem 2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    align-self: flex-start;
}

.p2p-hero-btn:hover,
.p2p-hero-btn:focus {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
    box-shadow: none !important;
}

/* ── Tabs ───────────────────────────────────────────────────────────────── */
.p2p-nav-tabs {
    border-bottom: 2px solid var(--primary-bg-color, #2695D0);
    margin-bottom: 1.5rem;
    gap: .25rem;
    flex-wrap: wrap;
}

.p2p-nav-tabs .nav-item {
    background: var(--primary-bg-color, #2695D0);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.p2p-nav-tabs .nav-link {
    color: rgba(255,255,255,.85) !important;
    border: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: .5rem 1.25rem;
    font-weight: 500;
    transition: color .15s;
}

.p2p-nav-tabs .nav-link.active {
    color: var(--primary-bg-color, #2695D0) !important;
    background-color: #fff !important;
    border: none;
}

.p2p-tab-content {
    min-height: 300px;
}

.p2p-tab-pane {
    padding: 1rem 0;
}

/* ── Presenter card ─────────────────────────────────────────────────────── */
.p2p-presenter-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.p2p-presenter-photo-col {
    flex-shrink: 0;
}

.p2p-presenter-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-bg-color, #2695D0);
}

.p2p-presenter-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-bg-color, #2695D0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.p2p-presenter-content-col {
    flex: 1;
    min-width: 200px;
}

.p2p-presenter-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-bg-color, #2695D0);
    margin-bottom: .2rem;
}

.p2p-presenter-title {
    font-size: .95rem;
    font-style: italic;
    color: #555;
    margin-bottom: .5rem;
}

.p2p-presenter-bio {
    font-size: .9rem;
    line-height: 1.6;
    color: #333;
}

/* ── Synopsis ───────────────────────────────────────────────────────────── */
.p2p-synopsis {
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ── CTA button ─────────────────────────────────────────────────────────── */
.p2p-book-cta-btn {
    display: block;
    background-color: var(--primary-bg-color, #2695D0);
    color: #fff;
    border: 2px solid var(--primary-bg-color, #2695D0);
    border-radius: 2rem;
    padding: .5rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    box-shadow: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.p2p-book-cta-btn:hover,
.p2p-book-cta-btn:focus {
    background-color: transparent;
    color: var(--primary-bg-color, #2695D0);
    border-color: var(--primary-bg-color, #2695D0);
    box-shadow: none !important;
}

/* ── Terms ──────────────────────────────────────────────────────────────── */
.p2p-terms-outer {
    margin-top: 2.5rem;
}

.p2p-divider {
    border-color: #dee2e6;
    margin: 1.5rem 0;
}

.p2p-terms {
    font-size: .8rem;
    color: #666;
    line-height: 1.6;
}

/* ── Approval bar ───────────────────────────────────────────────────────── */
.p2p-approval-bar {
    background-color: var(--secondary-bg-color, #023C6B);
    color: var(--secondary-text-color, #fff);
    text-align: center;
    font-size: .8rem;
    padding: .5rem 1rem;
    margin-top: 2rem;
    border-radius: 4px;
}
