/* =====================================================================
   HBF 2027 — stiluri pentru secțiunile noi
   Se încarcă DUPĂ assets/css/styles.css și doar adaugă / suprascrie.
   Tokeni preluați din tema existentă: auriu #f4b44c, fundal #000,
   font "Unbounded".
   ===================================================================== */

:root {
    --hbf-gold: #f4b44c;
    --hbf-gold-soft: rgba(244, 180, 76, 0.32);
    --hbf-text-soft: rgba(255, 255, 255, 0.82);
    --hbf-text-muted: rgba(255, 255, 255, 0.6);
    --hbf-card-bg: rgba(255, 255, 255, 0.04);
}

/* ------------ Pagini interioare (fără scroll-snap) ------------ */
body.subpage {
    scroll-snap-type: none;
}

body.subpage .section-block {
    min-height: 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    scroll-snap-type: none;
    padding: 90px 0;
}

html:has(body.subpage) {
    scroll-snap-type: none;
}

/* Secțiunile cu înălțime fixă din tema de bază cresc natural pe paginile
   interioare, unde conținutul nu mai e o secțiune de full-screen. */
body.subpage .contact-section,
body.subpage .tickets-section {
    height: auto;
    min-height: 0;
}

/* Select-ul nativ nu moștenea stilul de input: săgeata implicită și
   opțiunile rămâneau pe fundal deschis. */
select.contact-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding-right: 2.4rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--hbf-gold) 50%),
        linear-gradient(135deg, var(--hbf-gold) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

select.contact-input option {
    background-color: #000;
    color: #fff;
}

/* ------------ Hero pagini interioare ------------ */
.page-hero {
    position: relative;
    padding: 190px 0 90px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.9)),
        url("../images/speakers-bg.png") center center / cover no-repeat;
    text-align: center;
}

.page-hero .page-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hbf-gold);
    margin-bottom: 1rem;
}

.page-hero .page-title {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
    margin-bottom: 1.1rem;
}

.page-hero .page-sub {
    max-width: 760px;
    margin: 0 auto;
    color: var(--hbf-text-soft);
    font-weight: 300;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--hbf-gold);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.back-link:hover {
    color: #fff;
}

/* ------------ Banda "date & location" din hero ------------ */
.hbf-reveal-band {
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    border-top: 1px solid var(--hbf-gold-soft);
    border-bottom: 1px solid var(--hbf-gold-soft);
    backdrop-filter: blur(4px);
    padding: 0.85rem 1rem;
    text-align: center;
}

.hbf-reveal-band p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: clamp(0.62rem, 1.5vw, 0.86rem);
    font-weight: 600;
    color: var(--hbf-gold);
}

/* Banda stă lipită de baza hero-ului, acolo unde era logo-ul "Powered by" */
.hero-header .hbf-reveal-band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 62px;
    z-index: 3;
}

@media (max-width: 768px) {
    .hero-header .hbf-reveal-band {
        bottom: 54px;
    }
}

/* ------------ Secțiune generică pe fundal comun ------------ */
.hbf-bg-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.86)),
        url("../images/speakers-bg.png") center center / cover no-repeat;
}

.hbf-intro {
    max-width: 780px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--hbf-text-soft);
    font-weight: 300;
    line-height: 1.85;
}

/* ------------ What's New — HBF Deal Match ------------ */
.dealmatch-section .section-inner {
    width: 100%;
    margin: 0 auto;
    padding: 110px 20px;
}

.dealmatch-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--hbf-gold);
    margin-bottom: 1rem;
    text-align: center;
}

.dealmatch-card {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--hbf-gold-soft);
    border-radius: 18px;
    background: var(--hbf-card-bg);
    padding: clamp(2rem, 5vw, 3.4rem);
}

.dealmatch-card .section-title {
    margin-bottom: 1.4rem;
}

.dealmatch-card p {
    color: var(--hbf-text-soft);
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 2.2rem;
}

.dealmatch-pass {
    max-width: 560px;
    margin: 0 auto 2.4rem;
    border: 1px solid var(--hbf-gold-soft);
    border-radius: 18px;
    background: var(--hbf-card-bg);
    padding: clamp(1.4rem, 3.5vw, 2.1rem);
    text-align: center;
}

.dealmatch-pass-name {
    display: block;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.dealmatch-pass-header .ticket-price-row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.1rem;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
}

.dealmatch-pass-header .ticket-price-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hbf-gold);
}

.dealmatch-pass-body {
    margin-top: 1.4rem;
}

.dealmatch-card .dealmatch-pass-label {
    margin-bottom: 0.6rem;
    color: #fff;
    font-weight: 500;
    text-align: left;
}

.dealmatch-pass-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.dealmatch-pass-body ul li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.45rem;
    line-height: 1.6;
    color: var(--hbf-text-soft);
    font-weight: 300;
}

.dealmatch-pass-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hbf-gold);
}

/* ------------ What to Expect — panelurile ------------ */
.panels-section .section-inner {
    width: 100%;
    margin: 0 auto;
    padding: 110px 20px;
}

/* Flex, nu grid: cu 5 paneluri pe 3 coloane, ultimul rând trebuie centrat. */
.panel-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.panel-item {
    flex: 0 1 310px;
}

.panel-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    border-left: 2px solid var(--hbf-gold);
    padding: 0.4rem 0 0.4rem 1.2rem;
}

.panel-num {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: -0.02em;
}

.panel-title {
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    color: #fff;
}

/* ------------ Packages — completări la .ticket-card ------------ */
/* .ticket-price-row este flex în tema de bază; eticheta trebuie să stea
   pe rândul ei, nu lângă prețuri. */
.ticket-price-row {
    flex-wrap: wrap;
    row-gap: 0.1rem;
}

.ticket-price-row .ticket-price-label {
    flex: 0 0 100%;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hbf-text-muted);
}

.ticket-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
    text-align: left;
}

.ticket-body ul li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.45rem;
    line-height: 1.6;
}

.ticket-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hbf-gold);
}

.ticket-note {
    display: block;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--hbf-text-muted);
    text-align: left;
}

.ticket-note a {
    color: var(--hbf-gold);
    text-decoration: underline;
}

.ticket-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--hbf-gold-soft);
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hbf-gold);
}

/* CTA dezactivat (Deal Match Pass — se cumpără doar după aprobare) */
.speaker-cta.is-locked {
    opacity: 0.55;
    cursor: not-allowed;
    border-style: dashed;
}

/* Grila de pachete: 4 coloane în loc de 3 carduri late.
   Cardurile fiind mai înguste, prețurile din tema de bază trebuie scalate. */
.tickets-container.tickets-container--four {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
    align-content: start;
}

.tickets-container.tickets-container--four .ticket-card {
    width: auto;
    max-width: none;
    margin: 0 0 2rem;
    padding: 2rem 1.4rem 4.5rem;
    display: flex;
    flex-direction: column;
}

.tickets-container.tickets-container--four .ticket-body {
    flex-grow: 1;
    width: 100%;
}

.tickets-container.tickets-container--four .ticket-header {
    width: 100%;
}

.tickets-container.tickets-container--four .ticket-price-current {
    font-size: clamp(1.9rem, 2.1vw, 2.4rem);
}

.tickets-container.tickets-container--four .ticket-price-old {
    font-size: clamp(1.05rem, 1.2vw, 1.3rem);
}

.tickets-container.tickets-container--four .ticket-price-row {
    gap: 10px;
}

.tickets-container.tickets-container--four .ticket-body p {
    max-width: none;
    font-size: 0.85rem;
}

.tickets-container.tickets-container--four .ticket-body ul {
    font-size: 0.85rem;
}

/* Secțiunea are 4 carduri cu text lung — lăsăm pagina să crească */
.tickets-section {
    height: auto;
    padding-bottom: 6vh;
}

/* ------------ Previous Editions ------------ */
.editions-section .section-inner {
    width: 100%;
    margin: 0 auto;
    padding: 110px 20px;
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    max-width: 960px;
    margin: 0 auto;
}

.edition-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hbf-gold-soft);
    border-radius: 18px;
    background: var(--hbf-card-bg);
    padding: clamp(1.6rem, 3.5vw, 2.4rem);
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.edition-card:hover {
    border-color: var(--hbf-gold);
    transform: translateY(-4px);
}

.edition-year {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1;
    color: var(--hbf-gold);
    margin-bottom: 0.4rem;
}

.edition-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.edition-card p {
    color: var(--hbf-text-soft);
    font-weight: 300;
    line-height: 1.75;
    font-size: 0.92rem;
    flex-grow: 1;
    margin-bottom: 1.6rem;
}

/* ------------ Statistici ediție (recap) ------------ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.6rem;
    max-width: 900px;
    margin: 0 auto 3.5rem;
}

.stat-item {
    text-align: center;
    border-top: 1px solid var(--hbf-gold-soft);
    padding-top: 1.2rem;
}

.stat-value {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.stat-label {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hbf-text-muted);
}

/* ------------ Grilă speakeri pe paginile de ediție ------------ */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 2rem 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.roster-card {
    text-align: center;
}

.roster-card img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--hbf-gold-soft);
    margin-bottom: 0.9rem;
}

.roster-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.roster-role {
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.55;
    color: var(--hbf-text-muted);
    margin: 0;
}

.roster-company {
    display: block;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--hbf-gold);
}

/* ------------ Partners — o singură siglă ------------
   Grila de bază e fixată pe 4 coloane, deci un singur logo ar rămâne
   în prima coloană, lipit de stânga. */
.partners-grid.partners-grid--single {
    grid-template-columns: minmax(auto, 320px);
    justify-content: center;
}

.partners-grid.partners-grid--single .partner-logo img {
    max-width: 100%;
    height: auto;
}

/* ------------ Formular Deal Match ------------ */
.dealmatch-form-wrapper {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--hbf-gold-soft);
    border-radius: 18px;
    background: var(--hbf-card-bg);
    padding: clamp(1.8rem, 4vw, 3rem);
}

.dealmatch-form-wrapper .form-label {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--hbf-text-soft);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--hbf-text-muted);
    line-height: 1.6;
}

.form-feedback {
    display: none;
    margin-top: 1.2rem;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.form-feedback.is-ok {
    display: block;
    border: 1px solid var(--hbf-gold-soft);
    color: var(--hbf-gold);
}

.form-feedback.is-error {
    display: block;
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

.form-feedback.is-pending {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--hbf-text-muted);
}

/* ------------ Steps (cum funcționează Deal Match) ------------ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.step-item {
    border-top: 2px solid var(--hbf-gold);
    padding-top: 1.2rem;
}

.step-num {
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hbf-gold);
    margin-bottom: 0.6rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.step-item p {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--hbf-text-soft);
    margin: 0;
}

/* ------------ Notă de lucru pentru preview (se șterge la publicare) --- */
.preview-flag {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid var(--hbf-gold-soft);
    color: var(--hbf-gold);
    border-radius: 999px;
    padding: 0.38rem 0.9rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
}

@media (max-width: 576px) {
    .preview-flag {
        display: none;
    }
}
