/* ================================================================
   Riviera-Chablais – Petite Annonce Form Styles
   ================================================================ */

.rc-pa-wrapper {
    font-family: Arial, Helvetica, sans-serif;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 0;
    color: #333;
}

/* ---- STEPPER ---- */
.rc-pa-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
    padding: 0 20px;
}

.rc-pa-step-line {
    position: absolute;
    top: 46px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #ccc;
    z-index: 0;
}

.rc-pa-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.rc-pa-step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
    border: 3px solid #fff;
    outline: 2px solid #ccc;
    transition: background 0.3s, outline-color 0.3s;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.rc-pa-step.active .rc-pa-step-dot {
    background: #1a7abf;
    outline-color: #1a7abf;
}

.rc-pa-step.completed .rc-pa-step-dot {
    background: #1a7abf;
    outline-color: #1a7abf;
}

/* Progress bar fill */
.rc-pa-stepper[data-step="1"] .rc-pa-step-line { background: linear-gradient(to right, #1a7abf 0%, #ccc 0%); }
.rc-pa-stepper[data-step="2"] .rc-pa-step-line { background: linear-gradient(to right, #1a7abf 33%, #ccc 33%); }
.rc-pa-stepper[data-step="3"] .rc-pa-step-line { background: linear-gradient(to right, #1a7abf 66%, #ccc 66%); }
.rc-pa-stepper[data-step="4"] .rc-pa-step-line { background: #1a7abf; }

.rc-pa-step-label {
    font-size: 12px;
    text-align: center;
    color: #999;
    line-height: 1.3;
    min-height: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 6px;
}

.rc-pa-step.active .rc-pa-step-label,
.rc-pa-step.completed .rc-pa-step-label {
    color: #1a7abf;
    font-weight: 600;
}

/* ---- STEP CONTENT ---- */
.rc-pa-step-content {
    display: none;
    animation: rcpaFadeIn 0.25s ease;
}

.rc-pa-step-content.active {
    display: block;
}

@keyframes rcpaFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- GRID ---- */
.rc-pa-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.rc-pa-col {
    flex: 1;
    min-width: 0;
}

.rc-pa-field-full {
    margin-bottom: 20px;
}

/* ---- LABELS & INPUTS ---- */
.rc-pa-wrapper label,
.rc-pa-col label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.rc-pa-wrapper input[type="text"],
.rc-pa-wrapper input[type="email"],
.rc-pa-wrapper input[type="tel"],
.rc-pa-wrapper textarea,
.rc-pa-wrapper select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    color: #333;
}

.rc-pa-wrapper input:focus,
.rc-pa-wrapper textarea:focus,
.rc-pa-wrapper select:focus {
    border-color: #1a7abf;
    box-shadow: 0 0 0 2px rgba(26,122,191,0.15);
}

.rc-pa-wrapper input.has-error,
.rc-pa-wrapper textarea.has-error,
.rc-pa-wrapper select.has-error {
    border-color: #e74c3c;
}

.rc-pa-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.req {
    color: #e74c3c;
}

/* ---- ERRORS ---- */
.rc-pa-error {
    display: none;
    background: #fde8e8;
    color: #c0392b;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 5px;
}

.rc-pa-error.visible {
    display: block;
}

/* ---- RADIO BUTTONS ---- */
.rc-pa-radio-group {
    margin-bottom: 20px;
}

.rc-pa-radio-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: normal !important;
}

.rc-pa-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #1a7abf;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---- ABONNÉ FIELD ---- */
.rc-pa-abo-field {
    margin-bottom: 20px;
    animation: rcpaFadeIn 0.2s ease;
}

.rc-pa-abo-status {
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.rc-pa-abo-status.valid {
    background: #d4edda;
    color: #155724;
}

.rc-pa-abo-status.invalid {
    background: #fde8e8;
    color: #c0392b;
}

/* ---- SELECT ---- */
.rc-pa-select-wrap {
    position: relative;
}

.rc-pa-select-wrap select {
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

.rc-pa-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #1a7abf;
    font-size: 16px;
}

.rc-pa-select-blue select {
    border-color: #1a7abf;
    color: #1a7abf;
    font-weight: 600;
}

/* ---- BUTTONS ---- */
.rc-pa-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.rc-pa-btn {
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rc-pa-btn-next {
    background: #1a7abf;
    color: #fff !important;
}

.rc-pa-btn-next:hover {
    background: #155f9a;
}

.rc-pa-btn-prev {
    background: #f5f5f5;
    color: #555 !important;
    border: 1px solid #ccc;
}

.rc-pa-btn-prev:hover {
    background: #e8e8e8;
}

.rc-pa-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- RÉCAPITULATIF ---- */
.rc-pa-recap {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rc-pa-recap tr:nth-child(odd) {
    background: #f9f9f9;
}

.rc-pa-recap td {
    padding: 10px 14px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.rc-pa-recap-key {
    font-weight: 700;
    width: 40%;
    color: #444;
}

/* ---- PRIX BLOCK ---- */
.rc-pa-prix-block {
    background: #eaf4fb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.rc-pa-prix-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 15px;
}

.rc-pa-prix-label {
    font-weight: 700;
    color: #1a7abf;
}

.rc-pa-prix-val {
    font-weight: 600;
}

.rc-pa-prix-total-line {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 17px;
    background: #d0eaf8;
}

.rc-pa-prix-total-line .rc-pa-prix-label,
.rc-pa-prix-total-line .rc-pa-prix-val {
    font-weight: 800;
    color: #1a7abf;
}

/* ---- SUCCESS ---- */
.rc-pa-success-box {
    text-align: center;
    padding: 40px 30px;
    background: #f0faf4;
    border-radius: 8px;
    border: 1px solid #b2dfdb;
}

.rc-pa-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.rc-pa-success-box h3 {
    font-size: 22px;
    color: #155724;
    margin-bottom: 12px;
}

.rc-pa-success-box p {
    color: #555;
    font-size: 15px;
}

/* ---- SUBMIT ERROR ---- */
.rc-pa-submit-error {
    margin-bottom: 12px;
    padding: 12px 16px;
    font-size: 14px;
}

/* ---- NOTE ANONYME ---- */
.rc-pa-anonyme-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #555;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 580px) {
    .rc-pa-row {
        flex-direction: column;
        gap: 0;
    }

    .rc-pa-stepper {
        padding: 0 8px;
    }

    .rc-pa-step-label {
        font-size: 10px;
    }

    .rc-pa-actions {
        flex-direction: column-reverse;
    }

    .rc-pa-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---- DATE SELECT ---- */
#rc-pa-date-pub {
    cursor: pointer;
    color: #1a7abf;
    font-weight: 600;
    border-color: #1a7abf;
}

/* ================================================================
   MULTI-ANNONCES / MULTI-DATES (v3)
   ================================================================ */

/* ---- Bloc annonce ---- */
.rc-pa-annonce-bloc {
    background: #fff;
    border: 2px solid #d0e8f5;
    border-radius: 8px;
    padding: 22px 24px 16px;
    margin-bottom: 24px;
    position: relative;
    animation: rcpaFadeIn 0.25s ease;
}

.rc-pa-annonce-bloc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eaf4fb;
}

.rc-pa-annonce-bloc-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a7abf;
    letter-spacing: 0.02em;
}

.rc-pa-btn-remove-annonce {
    background: none;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.rc-pa-btn-remove-annonce:hover {
    background: #e74c3c;
    color: #fff;
}

/* ---- Grille de dates (checkboxes) ---- */
.rc-pa-dates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 6px;
}

.rc-pa-date-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: #f5f9fd;
    border: 1.5px solid #c5dff0;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 500 !important;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.rc-pa-date-checkbox-label:hover {
    border-color: #1a7abf;
    background: #eaf4fb;
}

.rc-pa-date-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #1a7abf;
    cursor: pointer;
    flex-shrink: 0;
}

.rc-pa-date-checkbox-label:has(input:checked) {
    border-color: #1a7abf;
    background: #d6edf9;
    font-weight: 600 !important;
}

.rc-pa-dates-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    margin-bottom: 2px;
}

/* ---- Bouton ajouter annonce ---- */
.rc-pa-add-annonce-wrap {
    text-align: center;
    margin: 4px 0 20px;
}

.rc-pa-btn-add-annonce {
    background: #fff;
    border: 2px dashed #1a7abf;
    color: #1a7abf !important;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.rc-pa-btn-add-annonce:hover {
    background: #eaf4fb;
}

/* ---- Récap annonces ---- */
.rc-pa-recap-annonce-bloc {
    margin-bottom: 20px;
    border: 1.5px solid #c5dff0;
    border-radius: 6px;
    overflow: hidden;
}

.rc-pa-recap-annonce-title {
    background: #1a7abf;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    letter-spacing: 0.02em;
}

.rc-pa-recap-annonce-bloc .rc-pa-recap {
    margin-bottom: 0;
}

.rc-pa-recap-dates-list {
    margin: 0;
    padding-left: 18px;
}

.rc-pa-recap-dates-list li {
    margin-bottom: 3px;
    font-size: 14px;
}

/* ---- Prix global ---- */
#recap-prix-global {
    margin-top: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 580px) {
    .rc-pa-dates-grid {
        flex-direction: column;
        gap: 6px;
    }

    .rc-pa-date-checkbox-label {
        white-space: normal;
    }

    .rc-pa-annonce-bloc {
        padding: 16px 14px 12px;
    }
}
