/* =============================================================
   WC Jersey Fields v2 — Styles
   Compatible Hello Elementor / Elementor
   ============================================================= */

/* Variables */
.wcjf-wrapper,
.wcjf-wrapper * {
    box-sizing: border-box;
}

/* ── Wrapper principal ── */
.wcjf-wrapper {
    margin: 28px 0 8px;
    width: 100%;
    font-family: inherit;
}

/* ── En-tête ── */
.wcjf-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c0976f;
}

.wcjf-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #c0976f !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.wcjf-subtitle {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
    padding: 0;
}

/* ── Bloc participant ── */
.wcjf-block {
    background: #ffffff;
    border: 1.5px solid #c0976f;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.wcjf-block-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8d5c0;
}

.wcjf-block-number {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c0976f;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wcjf-block-number::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c0976f;
    flex-shrink: 0;
}

/* ── Grille ── */
.wcjf-row {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.wcjf-row-2 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
    .wcjf-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ── Champ ── */
.wcjf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.wcjf-field:last-child {
    margin-bottom: 0;
}

.wcjf-field > label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    cursor: default;
}

.wcjf-req {
    color: #c0976f;
    margin-left: 1px;
}

/* ── Inputs ── */
.wcjf-input,
.wcjf-select {
    width: 100% !important;
    background: #ffffff !important;
    border: 1.5px solid #d9c4ae !important;
    border-radius: 5px !important;
    padding: 9px 13px !important;
    font-size: 0.88rem !important;
    color: #222 !important;
    line-height: 1.4 !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    margin: 0 !important;
    height: auto !important;
}

.wcjf-input:focus,
.wcjf-select:focus {
    border-color: #c0976f !important;
    box-shadow: 0 0 0 3px rgba(192, 151, 111, 0.14) !important;
}

.wcjf-input::placeholder {
    color: #bbb;
    font-size: 0.85rem;
}

/* Date input */
input[type="date"].wcjf-input {
    cursor: pointer;
}

/* ── Select ── */
.wcjf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23c0976f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 34px !important;
    cursor: pointer;
}

/* ── Radios sexe ── */
.wcjf-radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wcjf-radio-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 8px 16px !important;
    border: 1.5px solid #d9c4ae !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    color: #444 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: all 0.15s ease !important;
    user-select: none;
    margin: 0 !important;
    line-height: 1 !important;
}

.wcjf-radio-label:hover {
    border-color: #c0976f !important;
    background: #fdf9f5 !important;
}

.wcjf-radio-label.wcjf-radio-checked {
    border-color: #c0976f !important;
    background: #fdf9f5 !important;
    color: #c0976f !important;
    font-weight: 600 !important;
}

.wcjf-radio-label input[type="radio"] {
    width: 15px !important;
    height: 15px !important;
    accent-color: #c0976f !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* ── Animation apparition taille ── */
.wcjf-taille-homme,
.wcjf-taille-femme {
    animation: wcjf-in 0.2s ease;
    overflow: hidden;
}

@keyframes wcjf-in {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Boîte d'erreurs inline ── */
.wcjf-error-box {
    background: #fff5f5;
    border: 1.5px solid #e74c3c;
    border-radius: 5px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.wcjf-error-box p {
    margin: 3px 0 !important;
    padding: 0 !important;
    font-size: 0.82rem !important;
    color: #c0392b !important;
    line-height: 1.5 !important;
}

.wcjf-error-box p::before {
    content: '⚠ ';
}

/* ── Champs en erreur ── */
.wcjf-input.wcjf-error-field,
.wcjf-select.wcjf-error-field {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12) !important;
}

/* ── WooCommerce: masquer les notices de validation sur la page produit ── */
.single-product .wcjf-wrapper .woocommerce-error {
    display: none;
}
