/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* SCPI Simulator Container */
.scpi-simulator {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Title */
.scpi-simulator h2 {
    font-size: 22px;
    text-align: center;
    color: #0D0375;
    margin-bottom: 20px;
}

/* Form Rows */
.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    font-weight: 600;
    color: #0D0375;
    margin-bottom: 5px;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s ease-in-out;
}

.form-row input:focus,
.form-row select:focus {
    border-color: #0D0375;
    outline: none;
    box-shadow: 0 0 8px rgba(13, 3, 117, 0.3);
}

/* Checkbox Style */
.form-row input[type="checkbox"] {
    width: auto;
    margin-left: 10px;
}

.checkbox-group label {
    font-size: 12px; /* Ajustez la taille selon vos besoins */
}

/* Loan Fields (Hidden by Default) */
#loan_fields {
    background: #eef1f7;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0D0375;
    display: none;
}

/* Conteneur pour l'input et l'unité */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Champ de saisie avec espace pour l'unité */
.input-wrapper input {
    width: 100%;
    padding-right: 40px; /* Espace pour le symbole */
    /*text-align: right;*/
}

/* Style des unités (€, %, ans, etc.) */
.unit {
    position: absolute;
    right: 15px;
    color: #0D0375;
    font-weight: 600;
    font-size: 16px;
}

/* Info Box */
.info-box {
    background: #fffae6;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ffd700;
}

/* Buttons */
.form-buttons {
    text-align: center;
    margin-top: 20px;
}

.primary-button,
.secondary-button {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.primary-button {
    background: #0D0375;
    color: white;
    border: none;
}

.primary-button:hover {
    background: #0a0261;
}

.secondary-button {
    background: white;
    color: #0D0375;
    border: 2px solid #0D0375;
}

.secondary-button:hover {
    background: #0D0375;
    color: white;
}

/* Results Section */
.scpi-simulator-results {
    display: none;
    margin-top: 20px;
    background: #f0f4ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #0D0375;
}

.scpi-simulator-results p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Details Section */
.scpi-simulator-details {
    display: none;
    margin-top: 20px;
    background: #eef1f7;
    padding: 15px;
    border-radius: 8px;
}

.scpi-simulator-details h2 {
    font-size: 20px;
    color: #0D0375;
    margin-bottom: 15px;
}

.details-section {
    margin-bottom: 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th {
    background: #0D0375;
    color: white;
    padding: 10px;
}

table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

/* Example Study Link */
.example-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    font-size: 14px;
    color: #0D0375;
    text-decoration: none;
}

/* Email Modal */
.email-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px; /* Augmenter la largeur */
    max-width: 95%; /* Pour éviter le débordement sur mobile */
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.email-modal-content {
    position: relative;
    padding: 20px;
    width: 100%;
}

.email-modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #0D0375;
}

.email-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #0D0375;
}

.email-modal .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.email-modal .form-group label {
    flex: 0 0 120px; /* Largeur fixe pour le libellé */
    font-weight: 600;
    color: #333;
}

.email-modal .form-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.email-modal .checkbox-group {
    display: flex;
    align-items: center;
    font-size: 14px;
	margin-bottom: 12px;
}

.email-modal .checkbox-group input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.confirmation-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    display: none;
}

/* Message de succès */
.confirmation-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Message d'erreur */
.confirmation-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .scpi-simulator {
        max-width: 100%;
        padding: 15px;
    }

    .primary-button, 
    .secondary-button {
        width: 100%;
    }

    .email-modal {
        width: 90%;
    }
}