/* pes-simulateur-pac/css/style.css */

.pes-simulateur-wrapper {
    /* Main wrapper styles are handled by .formulaire from custom.css */
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #103372;
}

.pes-sim-title-cyan {
    color: #3bdacb;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.pes-sim-subtitle-italic {
    color: #103372;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.profil-simulateur {
    border-radius: 5px;
    border: 1px solid #103372;
    padding: 10px;
    line-height: 2;
}

.pes-profil-box {
    /* Styles handled by .profil from custom.css, we just add the border */
    border: 1px solid #103372;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #fff;
    width: 100%;
}

.pes-profil-header {
    font-weight: bold;
    color: #103372;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.pes-inline-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #103372;
}

.pes-label {
    width: 160px;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.pes-static-val {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.pes-inline-select {
    flex: 1;
    border: 1px solid #103372;
    border-radius: 5px;
    color: #103372;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23103372'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 8px 30px 8px 12px;
    cursor: pointer;
    outline: none;
    max-width: 320px;
    transition: all 0.2s ease;
}

.pes-inline-input:focus,
.pes-inline-select:focus {
    border-color: #3bdacb;
    box-shadow: 0 0 0 2px rgba(59, 218, 203, 0.2);
}

.pes-sim-section-title {
    color: #103372;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Ensure .prime text aligns properly */
.pes-simulateur-wrapper .prix_ex span {
    display: inline-block;
}

.pes-simulateur-wrapper .prix_ex.prime {
    padding-top: 8px;
    padding-bottom: 8px;
    align-items: center;
}

/* Hide input arrows for number field */
.pes-inline-input::-webkit-outer-spin-button,
.pes-inline-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pes-inline-input[type=number] {
    -moz-appearance: textfield;
}

.form-control {
    border: 1px solid #103372;
    border-radius: 5px;
}

.pes-cta-container {
    text-align: center;
    margin-top: 35px;
    margin-bottom: 10px;
}

.pes-btn-cta {
    display: inline-block;
    background-color: #3bdacb;
    color: #103372;
    font-weight: bold;
    font-size: 1.15rem;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pes-btn-cta:hover {
    background-color: #2ab8aa;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Version Mobile */
@media (max-width: 768px) {
    .pes-inline-form-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .pes-label {
        width: 100%;
        margin-bottom: 6px;
    }

    .pes-inline-select {
        max-width: 100%;
        width: 100%;
    }

    .pes-static-val {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }

    .pes-simulateur-wrapper .prix_ex {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .pes-simulateur-wrapper .prix_ex.prime {
        align-items: flex-start;
    }

    .pes-btn-cta {
        width: 100%;
        padding: 12px 20px;
        font-size: 1.05rem;
    }
}