﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

.rp-wrap { 
    max-width: 850px; 
    margin: 30px auto; 
    background: #ffffff; 
    border-radius: 20px; 
    padding: 35px; 
    box-shadow: 0 15px 45px rgba(0,0,0,0.07); 
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: #334155;
}
@media screen and (max-width: 768px){
    .rp-wrap {
        padding: 10px;
    }
}
.rp-banner {
    background: linear-gradient(135deg, #e1f2ff 0%, #e1f2ff 100%);
    border-left: 6px solid #009bfe;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.rp-banner-icon {
    font-size: 24px;
    line-height: 1;
}
.rp-banner-content h4 {
    margin: 0 0 6px 0;
    color: #0083da;
    font-weight: 700;
    font-size: 16px;
}
.rp-banner-content p {
    margin: 0;
    color: #0b2240;
    font-size: 14px;
    line-height: 1.5;
}
/* Wizard steps navigation */
.rp-wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 35px;
}
.rp-wizard-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #f1f5f9;
    z-index: 1;
}
.rp-wizard-progress {
    position: absolute;
    top: 25px;
    left: 10%;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #009bfe 0%, #10b981 100%);
    z-index: 2;
    transition: width 0.4s ease;
}
.rp-wizard-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 30%;
}
.rp-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background: #f1f5f9;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.3s ease;
}
.rp-wizard-step-node.active .rp-step-number {
    background: #009bfe;
    border-color: #009bfe;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.2);
}
.rp-wizard-step-node.completed .rp-step-number {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
.rp-step-label {
    margin-top: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    text-align: center;
    transition: color 0.3s ease;
}
.rp-wizard-step-node.active .rp-step-label {
    color: #1e293b;
    font-weight: 700;
}
.rp-wizard-step-node.completed .rp-step-label {
    color: #10b981;
}

/* Form steps contents */
.rp-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.rp-step-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rp-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}
.rp-box-title {
    margin: 0 0 20px 0;
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.container:has(.retraide-compatibility-page-container) {
    padding-right: 0;
    padding-left: 0;
}
@media (max-width: 768px) {
    .rp-grid { display: flex; flex-direction: column; grid-template-columns: 1fr; }
}
.rp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rp-field label {
    font-weight: 700;
    font-size: 14px;
    color: #475569;
}
.rp-field label span.required {
    color: #ef4444;
    margin-left: 2px;
}
.rp-input, .rp-select, .rp-textarea {
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rp-input:focus, .rp-select:focus, .rp-textarea:focus {
    outline: none;
    border-color: #009bfe;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.rp-textarea {
    min-height: 110px;
    resize: vertical;
}

/* Rhythm Radio Cards */
.rp-rhythm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}
@media (max-width: 640px) {
    .rp-rhythm-grid { grid-template-columns: 1fr; }
}
.rp-rhythm-card {
    position: relative;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.rp-rhythm-card:hover {
    border-color: #009bfe;
    transform: translateY(-2px);
}
.rp-rhythm-card.active {
    border-color: #009bfe;
    background: #f0f8ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}
.rp-rhythm-icon {
    font-size: 28px;
}
.rp-rhythm-label {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}
.rp-rhythm-desc {
    font-size: 12px;
    color: #64748b;
}

/* Custom Checkbox Grid */
.rp-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 640px) {
    .rp-checkbox-grid { grid-template-columns: 1fr; }
}
.rp-card-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.rp-card-checkbox:hover {
    border-color: #009bfe;
    transform: translateY(-2px);
}
.rp-card-checkbox.checked {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.08);
}
.rp-card-checkbox-dot {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.2s;
}
.rp-card-checkbox.checked .rp-card-checkbox-dot {
    background: #22c55e;
    border-color: #22c55e;
}
.rp-card-checkbox.checked .rp-card-checkbox-dot::after {
    content: 'âœ“';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}
.rp-card-checkbox-label {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}
.rp-card-checkbox.checked .rp-card-checkbox-label {
    color: #14532d;
}

/* Navigation Buttons */
.rp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}
.rp-btn-prev {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.rp-btn-prev:hover {
    background: #f8fafc;
    color: #1e293b;
}
.rp-btn-next, .rp-btn-submit {
    border: 0;
    background: #009bfe;
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.rp-btn-next:hover {
    background: #0083da;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.rp-btn-submit {
    background: #10b981;
}
.rp-btn-submit:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.rp-error-notice {
    color: #ef4444;
    font-weight: bold;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

/* Suggestions Autocomplete Mapbox */
.mapbox-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 5px;
}

.mapbox-suggestion-item {
    padding: 10px 15px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    text-align: left;
}

.mapbox-suggestion-item:last-child {
    border-bottom: none;
}

.mapbox-suggestion-item:hover {
    background: #f8fafc;
    color: #009bfe;
}

/* Styles additionnels et spécifiques pour le widget d'inscription intégrée */

.rp-signup-step {
    animation: fadeIn 0.4s ease;
}

.rp-signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .rp-signup-grid {
        grid-template-columns: 1fr;
    }
}

/* Votre profil - Radio Options */
.rp-profile-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.rp-profile-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14.5px;
    color: #334155;
    transition: all 0.2s ease;
}

.rp-profile-radio-label:hover {
    border-color: #009bfe;
    background: #f8fafc;
}

.rp-profile-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #009bfe;
    flex-shrink: 0;
}

/* Autorisations - Checkboxes */
.rp-authorizations-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.rp-auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #475569;
}

.rp-auth-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: #009bfe;
    flex-shrink: 0;
}

/* Error Box */
.rp-error-box {
    background-color: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    color: #991b1b;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.5;
    display: none;
    animation: shake 0.4s ease;
}

/* Google reCAPTCHA wrapper centering */
.rp-captcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px 0;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
