/*
 * The tickets page (resources/views/seminar/tickets.blade.php), laid out as
 * the Grand Conference template's ticket page: a card per tier, the one being
 * put forward raised above the others, and the questions underneath.
 *
 * Loaded only by that page. The colours come from ibrothers.css
 * (--wb-accent, --wb-deep), so the page follows the rest of the theme.
 */

.wb-tickets-band {
    padding: 150px 0 90px;
    background-color: #111111;
    background-position: center;
    background-size: cover;
}

.wb-tickets-head { text-align: left; }

/* ---------- the tiers ---------- */

.wb-tickets-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
    text-align: left;
}

/* one or two tiers sit in the middle rather than stretching across */
.wb-tickets-grid[data-count="1"] { grid-template-columns: minmax(0, 420px); justify-content: center; }
.wb-tickets-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.wb-tickets-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.wb-ticket {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 44px 34px 34px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #FFFFFF;
    transition: box-shadow 0.3s, transform 0.3s;
}

.wb-ticket:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1); }

/* the one being put forward: the template raises it and fills its head */
.wb-ticket.is-featured {
    border-color: transparent;
    background: #111111;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
}

.wb-ticket.is-featured .wb-ticket-name,
.wb-ticket.is-featured .wb-ticket-price strong { color: #FFFFFF; }

.wb-ticket.is-featured .wb-ticket-tagline,
.wb-ticket.is-featured .wb-ticket-perks li,
.wb-ticket.is-featured .wb-ticket-price span,
.wb-ticket.is-featured .wb-ticket-availability { color: rgba(255, 255, 255, 0.7); }

.wb-ticket.is-featured .wb-ticket-perks li { border-color: rgba(255, 255, 255, 0.12); }

.wb-ticket-flag {
    position: absolute;
    top: -14px;
    left: 34px;
    padding: 7px 14px;
    border-radius: 40px;
    background: var(--wb-accent);
    color: #FFFFFF;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wb-ticket-name {
    margin: 0 0 8px;
    color: #111111;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.wb-ticket-tagline {
    margin: 0 0 22px;
    color: #777777;
    font-size: 15px;
    line-height: 1.6;
}

.wb-ticket-price {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wb-ticket.is-featured .wb-ticket-price { border-bottom-color: rgba(255, 255, 255, 0.12); }

.wb-ticket-price strong {
    display: block;
    color: var(--wb-accent);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
}

.wb-ticket.is-featured .wb-ticket-price strong { color: var(--wb-accent); }

.wb-ticket-price span {
    display: block;
    margin-top: 8px;
    color: #888888;
    font-size: 14px;
}

.wb-ticket-perks { flex: 1; margin: 0 0 26px; padding: 0; list-style: none; }

.wb-ticket-perks li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
}

.wb-ticket-perks li:last-child { border-bottom: none; }
.wb-ticket-perks span { color: var(--wb-accent); font-size: 12px; }

.wb-ticket-foot { margin-top: auto; }

.wb-ticket-button { display: inline-block; }

.wb-ticket-button.is-off {
    opacity: 0.55;
    cursor: not-allowed;
}

.wb-ticket.is-gone { opacity: 0.85; }

.wb-ticket-availability {
    margin: 14px 0 0;
    color: #999999;
    font-size: 13px;
}

.wb-tickets-empty {
    padding: 40px 0;
    color: #555555;
    font-size: 16px;
    text-align: left;
}

/* ---------- the questions underneath ---------- */

.wb-tickets-faqs {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
}

.wb-tickets-faqs-title {
    margin: 0 0 28px;
    color: #111111;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
}

.wb-tickets-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 45px;
}

.wb-tickets-faq h3 {
    margin: 0 0 10px;
    color: #111111;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.wb-tickets-faq p {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}

.wb-tickets-faq-more {
    display: inline-block;
    margin-top: 32px;
    color: var(--wb-accent);
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
}

@media (max-width: 991px) {
    .wb-tickets-grid,
    .wb-tickets-grid[data-count="2"],
    .wb-tickets-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
    .wb-tickets-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .wb-tickets-band { padding: 110px 0 70px; }
    .wb-tickets-grid,
    .wb-tickets-grid[data-count="1"],
    .wb-tickets-grid[data-count="2"],
    .wb-tickets-grid[data-count="4"] { grid-template-columns: 1fr; }
    .wb-ticket { padding: 38px 26px 28px; }
}
