/* Contact Form Styles based on test-drive.css */

/* Reuse styles but scoped or modified where necessary */

.contact-form-section {
    padding: 60px 40px;
    display: flex;
    justify-content: center;
}

.contact-form-wrapper {
    width: 60%;
    margin: 0 auto;
}

.contact-form-title {
    font-family: 'Russo One', Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    color: #000;
    letter-spacing: 0.02em;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

.form-floating-label {
    position: relative;
}

.form-control-custom {
    width: 100%;
    padding: 22px 20px 10px 20px;
    font-size: 15px;
    font-family: 'Manrope', Arial, sans-serif;
    line-height: 1.4;
    color: #000;
    background: #fff;
    border: 1px solid #d4d3d3;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-control-custom:focus {
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.form-control-custom:hover {
    border-color: #a0a0a0;
}

.form-floating-label label {
    position: absolute;
    top: 8px;
    left: 20px;
    font-size: 12px;
    color: #7c7979;
    font-family: 'Manrope', Arial, sans-serif;
    pointer-events: none;
    transition: all 0.2s ease;
}



/* Error States */
.form-group.has-error .form-control-custom {
    border-color: #eb4d4b;
    background-color: #fffafa;
}

.form-group.has-error .form-floating-label label {
    color: #eb4d4b;
}

.error-message {
    font-size: 11px;
    color: #eb4d4b;
    margin-top: 4px;
    margin-left: 5px;
    display: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

.form-group.has-error .error-message,
.consent-group.has-error .error-message {
    display: block;
    animation: fadeIn 0.3s ease;
}

.general-error-message {
    display: none;
    margin-top: 20px;
    padding: 12px;
    background: #fff0f0;
    color: #eb4d4b;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    font-family: 'Manrope', sans-serif;
}

.general-error-message.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select Arrow */
.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #000;
    pointer-events: none;
}

select.form-control-custom {
    cursor: pointer;
    padding-right: 45px;
}

/* Textarea override */
textarea.form-control-custom {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox Styles */
.consent-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #d4d3d3;
    border-radius: 4px;
    background: #fff;
    position: relative;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: #000;
    border-color: #000;
}

.consent-group.has-error .checkbox-custom {
    border-color: #eb4d4b;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 13px;
    color: #2e2d2d;
    line-height: 1.5;
    font-family: 'Manrope', Arial, sans-serif;
}

.checkbox-text a {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 18px 40px;
    font-size: 15px;
    font-family: 'Manrope', Arial, sans-serif;
    font-weight: 600;
    color: #fff;
    background: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-button:active {
    background: #1a1a1a;
    transform: translateY(0);
}

.required-note {
    font-size: 12px;
    color: #7c7979;
    margin-bottom: 25px;
    font-family: 'Manrope', Arial, sans-serif;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 25px;
    }
}
/* Email Toggle Styles */
.email-toggle-link {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
    text-align: left;
    display: block;
    margin-top: 5px;
    font-family: 'Manrope', Arial, sans-serif;
}
.email-toggle-link:hover {
    color: #555;
}
.form-field-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #000;
    font-family: 'Manrope', Arial, sans-serif;
}
