/* Pub Form Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

.pub-form-container {
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.pub-form-fields-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.pub-btn-primary:focus{
    background-color: #000000;
}

/* Main Title */
/* Header: titre + badge côte à côte sur desktop */
.pub-form-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.pub-step-title.mt-50{
    margin-top: 50px;
}

.pub-form-main-title {
    font-family: 'Inter', sans-serif;
    font-size: 50px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin: 0;
    line-height: 1.15;
}

/* Badge "En moins de 30 secondes" */
.pub-form-badge {
    display: inline-block;
    flex-shrink: 0;
    background-color: #000000;
    color: #ffc431;
    padding: 25px 25px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    cursor: default;
    pointer-events: none;
    user-select: none;
    display: block;
    width: fit-content;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
/* Progress Indicator */
.pub-progress-container {
    position: relative;
    margin-bottom: 50px;
    padding: 0;
    max-width: 448px;
    margin:  68px auto 45px auto;
}

.pub-progress-line {
    position: absolute;
    top: 50%;
    left: 12.5px;
    right: 12.5px;
    height: 5px;
    background-color: #ffffff;
    transform: translateY(-50%);
    z-index: 1;
}

.pub-progress-line-active {
    background-color: #000000;
    height: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.3s ease, left 0.3s ease;
}

.pub-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
    padding: 0;
}

.pub-progress-step {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pub-progress-step.active {
    background-color: #000000;
    border-color: #000000;
}

.pub-progress-step.completed {
    background-color: #000000;
    border-color: #000000;
}

/* Step Content */
.pub-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.pub-step.active {
    display: block;
}

/* Form Fields Wrapper - Text inputs only */
.pub-step .pub-form-fields-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

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

.pub-step-title {
    font-size: 30px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.pub-step-subtitle {
    font-size: 18px;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 25px;
    padding-right: 25px;
    font-family: 'Inter', sans-serif;
}

/* Form Fields */
.pub-form-group {
    margin-bottom: 25px;
}

.pub-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.pub-form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pub-form-input-wrapper .pub-form-input {
    padding-right: 50px !important;
}

.pub-form-input {
    width: 100% !important;
    padding: 20px !important;
    background-color: #ffffff !important;
    border: 2px solid #00000029 !important;
    border-radius: 0px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    color: #000000 !important;
    box-shadow: none !important;
    outline: none !important;
}

.pub-form-input:focus,
.pub-form-input:focus-visible,
.pub-form-input:active {
    outline: none !important;
    background-color: #ffffff !important;
    border: 2px solid #00000029 !important;
    box-shadow: none !important;
}

.pub-form-input:hover {
    border: 2px solid #00000029 !important;
}

.pub-form-input-icon {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: #666;
}

.pub-form-input-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Radio Button Cards (Step 4 & 5) */
.pub-radio-group-wrapper {
    max-width: 1220px;
    margin: 0 auto;
}

.pub-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
    justify-content: center;
    width: 100%;
}

.pub-radio-group .pub-radio-card {
    width: 230px;
    height: 124px;
    flex: 0 0 230px;
    min-width: 230px;
    max-width: 230px;
}

.pub-radio-card {
    position: relative;
    border: 2px solid #5E5E5E;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    width: 230px;
    height: 124px;
    min-height: 124px;
    max-height: 124px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.pub-radio-card:hover {
    border-color: #ffc431;
    box-shadow: 0 4px 12px rgba(255, 196, 49, 0.25);
}

.pub-radio-card input[type="radio"],
.pub-radio-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Step 4 - Radio labels */
.pub-step[data-step="4"] .pub-radio-card-label {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    margin-bottom: auto;
    line-height: 1.4;
}

/* Step 5 - Radio labels */
.pub-step[data-step="5"] .pub-radio-card-label {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin-bottom: auto;
    line-height: 1.4;
}

.pub-radio-card-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    color: rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

.pub-radio-card-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Selected state for all yes/no + radio steps */
.pub-radio-card.step3-selected,
.pub-radio-card.step4-selected,
.pub-radio-card.step5-selected,
.pub-radio-card.step6-selected {
    background-color: #000000;
    border-color: #000000;
}

.pub-radio-card.step3-selected .pub-radio-card-label,
.pub-radio-card.step4-selected .pub-radio-card-label,
.pub-radio-card.step5-selected .pub-radio-card-label,
.pub-radio-card.step6-selected .pub-radio-card-label {
    color: #ffffff !important;
}

.pub-radio-card.step3-selected .pub-radio-card-icon,
.pub-radio-card.step4-selected .pub-radio-card-icon,
.pub-radio-card.step5-selected .pub-radio-card-icon,
.pub-radio-card.step6-selected .pub-radio-card-icon {
    color: rgba(255, 255, 255, 0.3);
}

/* Checkmark indicator — hidden for yes/no cards */
.pub-radio-checkmark {
    display: none;
}

.pub-datepicker-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
}

.pub-datepicker-wrapper .calendly-inline-widget {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Buttons */
.pub-form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pub-btn {
    padding: 14px 32px;
    border: 2px solid #000000;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    background-color: transparent;
    color: #000000;
    outline: none !important;
    box-shadow: none !important;
}

.pub-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.pub-btn:focus,
.pub-btn:focus-visible,
.pub-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Navigation buttons: Suivant / Précédent — outline style */
.pub-btn-next,
.pub-btn-prev {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
    flex: 1;
    text-align: center;
}

.pub-btn-next:hover,
.pub-btn-prev:hover,
.pub-btn-next:focus,
.pub-btn-prev:focus,
.pub-btn-next:focus-visible,
.pub-btn-prev:focus-visible,
.pub-btn-next:active,
.pub-btn-prev:active {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Visit site button */
.pub-btn-visit-site {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    flex: 1;
    text-align: center;
    text-decoration: none !important;
    line-height: 1 !important;
}

.pub-btn-visit-site:hover,
.pub-btn-visit-site:focus,
.pub-btn-visit-site:active {
    background-color: #222222 !important;
    border-color: #222222 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.pub-btn-primary {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
}

.pub-btn-primary:hover,
.pub-btn-primary:focus,
.pub-btn-primary:focus-visible,
.pub-btn-primary:active {
    background-color: #222222 !important;
    border-color: #222222 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}
.pub-datepicker-wrapper iframe {
    min-height: 700px;
}
.pub-link-no-dates {
    padding: 14px 32px;
    border: 2px solid #000000;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    background-color: transparent;
    color: #000000;
    transition: all 0.2s ease;
    text-align: center;
}

.pub-link-no-dates:hover,
.pub-link-no-dates:focus,
.pub-link-no-dates:active {
    background-color: #000000 !important;
    color: #ffffff !important;
    text-decoration: none;
    outline: none !important;
    box-shadow: none !important;
}

.pub-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pub-btn-secondary {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.pub-btn-secondary:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Error Messages */
.pub-form-error {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.pub-form-group.has-error .pub-form-error {
    display: block;
}

.pub-form-group.has-error .pub-form-input {
    border-color: #d32f2f;
}

.pub-radio-group.has-error {
    border: 2px solid #d32f2f;
    border-radius: 8px;
    padding: 10px;
}

/* Success Message */
.pub-form-success {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.pub-form-success.active {
    display: block;
}

.pub-form-success h2 {
    color: #000000;
    font-size: 28px;
    margin-bottom: 15px;
}

.pub-form-success p {
    color: #666;
    font-size: 16px;
}


/* Oui / Non Cards */
.pub-yesno-group {
    justify-content: center;
    gap: 24px;
    max-width: 480px;
    margin: 20px auto 10px;
}

.pub-yesno-card {
    width: 200px !important;
    height: 110px !important;
    flex: 0 0 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    min-height: 110px !important;
    max-height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    border: 2px solid #000000 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pub-yesno-card:hover {
    background-color: #f5f5f5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pub-yesno-card .pub-radio-card-label {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

.pub-yesno-card.step3-selected,
.pub-yesno-card.step4-selected,
.pub-yesno-card.step5-selected {
    background-color: #000000 !important;
    border-color: #000000 !important;
}

.pub-yesno-card.step3-selected .pub-radio-card-label,
.pub-yesno-card.step4-selected .pub-radio-card-label,
.pub-yesno-card.step5-selected .pub-radio-card-label {
    color: #ffffff !important;
}

.pub-radio-error {
    text-align: center;
    margin-top: 10px;
    display: none;
}

.pub-radio-group.has-error ~ .pub-radio-error,
.pub-radio-group.has-error + .pub-radio-error {
    display: block;
}

/* Navigation actions: précédent left, suivant right */
.pub-form-actions {
    justify-content: center;
    gap: 12px;
    max-width: 700px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Seul bouton (step 1) : centré à 50% */
.pub-form-actions .pub-btn-next:only-child {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
}

/* Ineligible Step */
.pub-ineligible-content {
    text-align: center;
    padding: 30px 20px;
}

.pub-ineligible-icon {
    margin: 0 auto 24px;
    width: 72px;
    height: 72px;
}

.pub-ineligible-actions {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 1300px) {
    .pub-radio-group {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {

    /* --- Header --- */
    .pub-form-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .pub-form-main-title {
        font-size: 26px;
        text-align: center;
    }

    .pub-form-badge {
        font-size: 13px;
        padding: 10px 14px;
        border-radius: 6px;
        text-align: center;
    }

    /* --- Progress --- */
    .pub-progress-container {
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        overflow: hidden;
        margin: 30px auto 25px;
    }

    .pub-progress-steps {
        gap: 0;
    }

    .pub-progress-step {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* --- Titres étapes --- */
    .pub-step-title {
        font-size: 20px;
    }

    .pub-step-subtitle {
        font-size: 14px;
    }

    /* --- Inputs --- */
    .pub-form-input {
        padding: 14px 40px 14px 14px !important;
        font-size: 15px !important;
    }

    .pub-form-fields-wrapper {
        margin-bottom: 16px;
    }

    .pub-form-group {
        margin-bottom: 12px;
    }

    /* --- Cartes Oui/Non côte à côte --- */
    .pub-yesno-group {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 12px;
        max-width: 100%;
        margin: 12px auto 8px;
    }

    .pub-yesno-card {
        width: auto !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        padding: 10px !important;
    }

    .pub-yesno-card .pub-radio-card-label {
        font-size: 20px !important;
    }

    /* --- Boutons côte à côte, Suivant toujours à droite --- */
    .pub-form-actions {
        flex-direction: row !important;
        gap: 10px;
    }

    .pub-btn {
        flex: 1;
        width: auto;
        padding: 14px 10px;
        font-size: 13px;
    }

    /* Bouton seul (step 1) : pleine largeur */
    .pub-form-actions .pub-btn-next:only-child {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .pub-datepicker-wrapper iframe{
        min-height: 600px;
    }
    #pub-calendly-widget {
        min-height: 600px !important;
    }
}
@media (max-width: 400px) {
    .pub-form-main-title {
        font-size: 22px;
    }

    .pub-step-title {
        font-size: 17px;
    }

    .pub-btn {
        font-size: 12px;
        padding: 12px 8px;
    }

    .pub-yesno-card {
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
    }

    .pub-yesno-card .pub-radio-card-label {
        font-size: 17px !important;
    }
}

@media (max-width: 350px) {
    .pub-form-main-title {
        font-size: 20px;
    }

    .pub-step-title {
        font-size: 15px;
    }

    .pub-form-badge {
        font-size: 11px;
        padding: 8px 10px;
    }
}
