/*
 * fw-attendee-page.css
 * XII Festiwal Whisky — stylizacja strony /attendee-details/ #900
 * Doklej do festiwal-whisky-woo-styling.php jako dodatkowy blok CSS
 * lub wp_add_inline_style('fw-woo-style', $css)
 *
 * Dotyczy: body.page-id-900 (lub klasa którą ma strona attendee)
 * Selektory FooEvents: .fooevents-attendee-* generowane przez mu-plugin
 */

/* ============================================================
   WRAPPER STRONY
   ============================================================ */

body.page-id-900,
body.fw-attendee-page {
    background: #000 !important;
    color: #fff !important;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

/* Usuń domyślny padding Elementora/Hello */
body.page-id-900 .elementor-section-wrap,
body.page-id-900 .e-con-inner,
body.fw-attendee-page .elementor-section-wrap {
    background: #000 !important;
}

/* Główny kontener treści */
body.page-id-900 .fw-attendee-wrap,
.fw-attendee-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 28px 80px;
}

/* ============================================================
   EYEBROW + TYTUŁ SEKCJI
   ============================================================ */

.fw-attendee-wrap .fw-eyebrow,
body.page-id-900 .fw-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #00a378;
    display: block;
    margin-bottom: 10px;
}

.fw-attendee-wrap h1,
.fw-attendee-wrap h2,
body.page-id-900 .fooevents-attendee-page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-size: clamp(24px, 3.5vw, 36px);
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.06;
}

.fw-attendee-page-desc,
body.page-id-900 .fooevents-attendee-page-description {
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    color: rgba(255,255,255,0.52);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ============================================================
   PASEK PRODUKTU (nazwa zamówionego biletu)
   ============================================================ */

.fw-product-bar,
body.page-id-900 .fooevents-product-heading {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.09);
    padding: 16px 22px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Ikona biletu */
.fw-product-bar .fw-ticket-icon {
    width: 36px;
    height: 36px;
    background: rgba(0,119,89,0.12);
    border: 1px solid rgba(0,119,89,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fw-product-bar .fw-product-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: #fff;
    margin-bottom: 2px;
}

.fw-product-bar .fw-product-meta {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   NAGŁÓWEK UCZESTNIKA (H3 "Uczestnik N")
   ============================================================ */

body.page-id-900 h3,
body.page-id-900 .fooevents-attendee-number,
.fooevents-attendee-number,
.woocommerce-page h3.fooevents-heading {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 400 !important;
    font-size: 22px !important;
    color: #fff !important;
    letter-spacing: -0.01em;
    margin: 28px 0 16px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Numer uczestnika — zielony krąg */
body.page-id-900 h3 .fw-att-num,
.fw-att-num-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #007759;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

/* Check kiedy uczestnik uzupełniony */
body.page-id-900 h3 .fw-att-num.complete,
.fw-att-num-badge.complete {
    background: #00a378;
}

/* Ikonka "uzupełniony" ✓ przy nagłówku uczestnika */
body.page-id-900 .fooevents-attendee-complete-icon,
.fooevents-attendee-complete-icon {
    color: #00a378;
    font-size: 16px;
    margin-left: 6px;
}

/* ============================================================
   POLA FORMULARZA UCZESTNIKA
   ============================================================ */

/* Wrapper pól jednego uczestnika */
body.page-id-900 .fooevents-attendee-fields,
body.page-id-900 .attendee-fields-wrap,
.fooevents-attendee-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
    padding: 22px 20px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.02);
}

/* Pola fullwidth (email, telefon) */
body.page-id-900 .fooevents-attendee-fields .form-row-wide,
body.page-id-900 .fooevents-attendee-fields p.fw-full,
.fooevents-attendee-fields .form-row-wide {
    grid-column: 1 / -1;
}

/* Pojedyncze pole */
body.page-id-900 .fooevents-attendee-fields .form-row,
body.page-id-900 .fooevents-attendee-fields p,
.fooevents-attendee-fields .form-row {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Etykieta */
body.page-id-900 .fooevents-attendee-fields label,
.fooevents-attendee-fields label {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.28em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.45) !important;
    margin: 0 !important;
}

/* Gwiazdka required */
body.page-id-900 .fooevents-attendee-fields label .required,
body.page-id-900 .fooevents-attendee-fields label abbr,
.fooevents-attendee-fields .required {
    color: #d94f4f !important;
    margin-left: 2px;
    text-decoration: none !important;
    border: none !important;
}

/* INPUT */
body.page-id-900 .fooevents-attendee-fields input[type="text"],
body.page-id-900 .fooevents-attendee-fields input[type="email"],
body.page-id-900 .fooevents-attendee-fields input[type="tel"],
body.page-id-900 .fooevents-attendee-fields input[type="number"],
body.page-id-900 .fooevents-attendee-fields select,
body.page-id-900 .fooevents-attendee-fields textarea,
.fooevents-attendee-fields input[type="text"],
.fooevents-attendee-fields input[type="email"],
.fooevents-attendee-fields input[type="tel"],
.fooevents-attendee-fields select {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: #fff !important;
    padding: 11px 13px !important;
    font-family: 'EB Garamond', serif !important;
    font-size: 17px !important;
    line-height: 1.4;
    border-radius: 0 !important;
    width: 100% !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, background 0.2s;
    box-shadow: none !important;
}

body.page-id-900 .fooevents-attendee-fields input::placeholder,
.fooevents-attendee-fields input::placeholder {
    color: rgba(255,255,255,0.22) !important;
}

body.page-id-900 .fooevents-attendee-fields input:focus,
body.page-id-900 .fooevents-attendee-fields select:focus,
.fooevents-attendee-fields input:focus,
.fooevents-attendee-fields select:focus {
    border-color: #007759 !important;
    background: rgba(0,119,89,0.06) !important;
}

/* Select strzałka */
body.page-id-900 .fooevents-attendee-fields select,
.fooevents-attendee-fields select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 13px center !important;
    padding-right: 34px !important;
    cursor: pointer;
}

body.page-id-900 .fooevents-attendee-fields select option {
    background: #111;
    color: #fff;
}

/* BŁĄD walidacji */
body.page-id-900 .fooevents-attendee-fields input.woocommerce-invalid,
body.page-id-900 .fooevents-attendee-fields .form-row.woocommerce-invalid input,
.fooevents-attendee-fields .woocommerce-invalid input {
    border-color: #d94f4f !important;
    background: rgba(217,79,79,0.07) !important;
}

/* ============================================================
   LINK "SKOPIUJ DANE UCZESTNIKA"
   ============================================================ */

body.page-id-900 .fooevents-copy-attendee,
body.page-id-900 .fw-copy-attendee-link,
.fooevents-copy-attendee,
a.fooevents-copy-attendee-data {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.45) !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    padding: 4px 0 !important;
    margin-top: 6px !important;
    transition: color 0.2s !important;
    /* Reset wszelkich domyślnych stylów WP/WC */
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.page-id-900 .fooevents-copy-attendee:hover,
a.fooevents-copy-attendee-data:hover,
.fw-copy-attendee-link:hover {
    color: #00a378 !important;
    background: none !important;
}

/* Ikona przy "Skopiuj" */
body.page-id-900 .fooevents-copy-attendee img,
a.fooevents-copy-attendee-data img {
    display: none !important; /* chowamy domyślną ikonę WP jeśli jest */
}

/* ============================================================
   SEPARATOR MIĘDZY UCZESTNIKAMI
   ============================================================ */

body.page-id-900 .fooevents-attendee-separator,
.fooevents-attendee-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
    margin: 24px 0;
    border: none;
}

/* ============================================================
   PRZYCISK "PROCEED TO CHECKOUT" / DALEJ
   ============================================================ */

body.page-id-900 .fooevents-proceed-btn,
body.page-id-900 input[type="submit"],
body.page-id-900 button[type="submit"],
body.page-id-900 .woocommerce-button,
body.page-id-900 a.button,
body.page-id-900 button.button,
.fooevents-attendee-page input[type="submit"],
.fooevents-attendee-page button[type="submit"],
.fooevents-attendee-page a.checkout-button,
.fooevents-attendee-page .wc-proceed-to-checkout a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 17px 32px !important;
    background: #007759 !important;
    border: 1px solid #007759 !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.26em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: background 0.25s, border-color 0.25s !important;
    text-decoration: none !important;
    box-shadow: none !important;
    margin-top: 24px !important;
    min-width: 260px;

    /* ZABIJA fioletowy WooCommerce */
    --wp-button-bg: #007759;
    --button-color: #fff;
}

body.page-id-900 input[type="submit"]:hover,
body.page-id-900 button[type="submit"]:hover,
body.page-id-900 a.button:hover,
body.page-id-900 button.button:hover,
.fooevents-attendee-page input[type="submit"]:hover,
.fooevents-attendee-page button[type="submit"]:hover {
    background: #00a378 !important;
    border-color: #00a378 !important;
    color: #fff !important;
}

/* Wymuś nadpisanie zmiennych Elementora/Hello które mogą dawać fioletowy */
body.page-id-900 {
    --e-button-background-color: #007759;
    --e-button-hover-background-color: #00a378;
    --e-button-text-color: #fff;
    --e-global-color-accent: #007759;
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */

@media (max-width: 640px) {
    .fw-attendee-wrap,
    body.page-id-900 .fw-attendee-wrap {
        padding: 24px 16px 60px;
    }

    body.page-id-900 .fooevents-attendee-fields,
    .fooevents-attendee-fields {
        grid-template-columns: 1fr;
        padding: 18px 16px;
    }

    body.page-id-900 .fooevents-attendee-fields .form-row-wide,
    .fooevents-attendee-fields .form-row-wide {
        grid-column: 1;
    }

    body.page-id-900 input[type="submit"],
    body.page-id-900 button[type="submit"],
    body.page-id-900 a.button {
        width: 100% !important;
        min-width: unset;
    }
}
