/* PHF Séjour — front-end styles
   All selectors are namespaced with .sejour-* to avoid theme conflicts. */

/* ── Reset within namespace ─────────────────────────────────────────── */
#sejour-form *,
.sejour-pricing *,
.sejour-cancellation *,
.sejour-section * {
    box-sizing: border-box;
}

/* ── Pricing block ──────────────────────────────────────────────────── */
.sejour-pricing {
    background: #eef3f9;
    border-left: 4px solid #1a3a5c;
    padding: 16px 20px;
    margin-bottom: 28px;
    border-radius: 0 4px 4px 0;
}
.sejour-pricing h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #1a3a5c;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sejour-pricing ul {
    margin: 0 0 10px;
    padding-left: 18px;
}
.sejour-pricing p {
    margin: 0;
    font-size: 0.9rem;
}

/* ── Cancellation policy block ──────────────────────────────────────── */
.sejour-cancellation {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 14px 20px;
    margin-bottom: 28px;
    border-radius: 0 4px 4px 0;
}
.sejour-cancellation h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #7b5800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sejour-cancellation p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5d4200;
}

/* ── Success / error messages ───────────────────────────────────────── */
.sejour-success {
    background: #d4edda;
    border: 1px solid #b8dac1;
    color: #155724;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    line-height: 1.6;
}
.sejour-errors {
    background: #f8d7da;
    border: 1px solid #e8b4b8;
    color: #721c24;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.sejour-errors ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

/* ── Fieldsets ──────────────────────────────────────────────────────── */
.sejour-fieldset {
    border: 1px solid #d0d9e3;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.sejour-fieldset legend {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #1a3a5c;
    padding: 0 8px;
}

/* ── Fields ─────────────────────────────────────────────────────────── */
.sejour-field {
    margin-bottom: 16px;
}
.sejour-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #444;
    margin-bottom: 5px;
}
.sejour-field input[type="text"],
.sejour-field input[type="email"],
.sejour-field input[type="tel"],
.sejour-field input[type="date"],
.sejour-field input[type="time"],
.sejour-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #c4ccd6;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    transition: border-color .15s;
}
.sejour-field input:focus,
.sejour-field textarea:focus {
    border-color: #1a3a5c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, .12);
}
.sejour-field textarea {
    resize: vertical;
}
.req {
    color: #c0392b;
}

/* ── Row layouts ────────────────────────────────────────────────────── */
.sejour-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.sejour-row--half > .sejour-field  { flex: 1 1 calc(50% - 8px); min-width: 200px; }
.sejour-row--third > .sejour-field { flex: 1 1 calc(33% - 12px); min-width: 160px; }

/* ── Radio group ────────────────────────────────────────────────────── */
.sejour-radios > label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #444;
    margin-bottom: 8px;
    display: block;
}
.sejour-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.sejour-radio-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.95rem;
    cursor: pointer;
}
.sejour-radio-label input[type="radio"] {
    accent-color: #1a3a5c;
    width: 16px;
    height: 16px;
}

/* ── Travel section ─────────────────────────────────────────────────── */
.sejour-travel-section {
    margin-top: 20px;
    border-top: 1px dashed #c4ccd6;
    padding-top: 16px;
}
.sejour-travel-group {
    margin-bottom: 20px;
}
.sejour-travel-group h4 {
    margin: 0 0 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #1a3a5c;
}
.travel-leg {
    background: #f7f9fb;
    border: 1px solid #d8e2ec;
    border-radius: 5px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.sejour-leg-fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.sejour-leg-fields .sejour-field {
    flex: 1 1 150px;
    margin-bottom: 0;
}

/* ── Add / remove buttons ───────────────────────────────────────────── */
.sejour-btn-add {
    background: none;
    border: 1px dashed #1a3a5c;
    color: #1a3a5c;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background .15s;
}
.sejour-btn-add:hover {
    background: #eef3f9;
}
.sejour-btn-remove {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 6px 0 0;
    display: block;
}
.sejour-btn-remove:hover {
    text-decoration: underline;
}

/* ── Checkbox fields ────────────────────────────────────────────────── */
.sejour-checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}
.sejour-checkbox-field input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #1a3a5c;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── GDPR block ─────────────────────────────────────────────────────── */
.sejour-gdpr {
    background: #f7f9fb;
    border: 1px solid #d0d9e3;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.sejour-gdpr label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.sejour-gdpr input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #1a3a5c;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Submit button ──────────────────────────────────────────────────── */
.sejour-submit-row {
    text-align: center;
    margin-bottom: 8px;
}
.sejour-submit {
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 13px 36px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
}
.sejour-submit:hover {
    background: #254e7a;
}

/* ── Section shortcodes ─────────────────────────────────────────────── */
.sejour-section {
    margin-bottom: 32px;
}

/* Contact list */
.sejour-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.sejour-contact-item {
    background: #f7f9fb;
    border: 1px solid #d0d9e3;
    border-radius: 6px;
    padding: 14px 18px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sejour-contact-name  { font-weight: 700; font-size: 0.95rem; }
.sejour-contact-email { color: #1a3a5c; font-size: 0.9rem; text-decoration: none; }
.sejour-contact-email:hover { text-decoration: underline; }
.sejour-contact-phone { font-size: 0.9rem; color: #555; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .sejour-row--half > .sejour-field,
    .sejour-row--third > .sejour-field {
        flex: 1 1 100%;
    }
    .sejour-leg-fields .sejour-field {
        flex: 1 1 100%;
    }
    .sejour-fieldset {
        padding: 14px 14px;
    }
    .sejour-submit {
        width: 100%;
    }
}
