/* Custom Font Setup */
@font-face {
    font-family: 'harmonia';
    src: url('assets/fonts/Harmonia-Sans-W01-Regular.ttf') format('truetype');
}

/* Core Settings */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'harmonia', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fcfcfc;
    color: #000000;
    line-height: 1.5;
    padding: 20px;
    min-height: 100vh;
}

.elementor-container {
    max-width: 1140px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Header Styles */
.fiat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 30px;
    margin-bottom: 35px;
}

.header-left {
    flex-grow: 1;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.service-client-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.phone-icon {
    width: 44px;
    height: 40px;
    object-fit: contain;
}

.service-details {
    display: flex;
    flex-direction: column;
}

.service-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #888888;
    letter-spacing: 0.5px;
}

.service-phone {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000000;
    line-height: 1.2;
    margin: 2px 0;
}

.service-hours {
    font-size: 0.85rem;
    color: #666666;
}

.fields-notice {
    font-size: 0.9rem;
    color: #444444;
}

.header-right {
    flex-shrink: 0;
    padding-left: 20px;
}

.fiat-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

/* Form Styles */
.form-container {
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: 15px;
}

.column {
    flex: 1;
    min-width: 250px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.column.empty-col {
    display: block;
}

label {
    font-size: 0.95rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
    display: inline-block;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid #cccccc;
    border-radius: 2px;
    background-color: #ffffff;
    color: #000000;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
    border-color: #AD0C33;
    box-shadow: 0 0 0 2px rgba(173, 12, 51, 0.1);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 35px;
    cursor: pointer;
}

select:disabled {
    background-color: #f5f5f5;
    color: #888888;
    cursor: not-allowed;
}

/* Conditional Group Styles */
.conditional-group {
    width: 100%;
    transition: all 0.3s ease;
}

/* Consent Section */
.consent-section {
    margin-top: 30px;
    border-top: 1px solid #eaeaea;
    padding-top: 25px;
}

.notice-text {
    font-size: 0.95rem;
    color: #000000;
    margin-bottom: 20px;
}

.checkbox-wrapper {
    margin-bottom: 18px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #AD0C33;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.4;
}

.consent-link {
    color: #0000ee;
    text-decoration: underline;
}

.consent-link:hover {
    color: #AD0C33;
}

.policy-text {
    color: #000000;
}

/* Contact Authorization */
.contact-authorization {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-label {
    font-size: 0.95rem;
    font-weight: bold;
    color: #000000;
}

.auth-checkboxes {
    display: flex;
    gap: 25px;
}

.inline-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 0.9rem;
}

.inline-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #AD0C33;
}

/* Submit Section */
.submit-wrapper {
    margin-top: 25px;
}

#submit-btn {
    background-color: #AD0C33;
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border-radius: 2px;
}

#submit-btn:hover {
    background-color: #8f0a29;
}

#submit-btn:active {
    transform: scale(0.98);
}

#submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Error/Success Visual Feedback */
.error-field {
    border-color: #ff3333 !important;
    background-color: #fffafa !important;
}

.error-message-text {
    color: #ff3333;
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: bold;
}

/* Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-container {
    background: #ffffff;
    border-radius: 4px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 30px;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #888888;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #000000;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #AD0C33;
    margin-bottom: 25px;
    border-bottom: 2px solid #AD0C33;
    padding-bottom: 10px;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.french-confirmation,
.arabic-confirmation {
    font-size: 0.95rem;
    line-height: 1.6;
}

.french-confirmation p,
.arabic-confirmation p {
    margin-bottom: 10px;
}

.confirmation-container {
    margin-top: 15px;
    padding-left: 10px;
}

.arabic-confirmation .confirmation-container {
    padding-left: 0;
    padding-right: 10px;
}

.modal-link {
    color: #0056b3;
    text-decoration: underline;
    font-weight: bold;
}

.modal-link:hover {
    color: #AD0C33;
}

.modal-divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 25px 0;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 900px) {
    .elementor-container {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .fiat-header {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .header-right {
        padding-left: 0;
    }

    .fiat-logo {
        width: 100px;
    }

    .service-client-container {
        justify-content: center;
    }

    .column {
        flex: 1 1 100%;
    }

    .column.empty-col {
        display: none;
    }

    .auth-checkboxes {
        flex-direction: column;
        gap: 10px;
    }

    #submit-btn {
        width: 100%;
    }
}
