/* Стили для формы ОСАГО */

.osago-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    background: #FDFBF5;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #D27D2D;
    box-shadow: 0 2px 4px rgba(74, 69, 58, 0.08);
}

.form-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4A453A;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D27D2D;
}

.driver-block {
    background: #F8F5F0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(74, 69, 58, 0.15);
    position: relative;
}

.driver-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.driver-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4A453A;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(210, 125, 45, 0.3);
    flex-grow: 1;
}

.btn-add-driver,
.btn-remove-driver {
    background-color: transparent;
    color: #D27D2D;
    border: 1px solid #D27D2D;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-add-driver:hover {
    background-color: #D27D2D;
    color: #FDFBF5;
}

.btn-remove-driver {
    color: #c74444;
    border-color: #c74444;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-remove-driver:hover {
    background-color: #c74444;
    color: #FDFBF5;
}

.btn-add-driver i,
.btn-remove-driver i {
    font-size: 1rem;
}

.form-label {
    font-weight: 500;
    color: #4A453A;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 4px;
    border: 1px solid rgba(74, 69, 58, 0.2);
    padding: 10px 15px;
    font-size: 0.95rem;
    background-color: #F8F5F0;
    color: #4A453A;
}

.form-control:focus {
    border-color: #D27D2D;
    box-shadow: 0 0 0 0.2rem rgba(210, 125, 45, 0.15);
    background-color: #FDFBF5;
}

.form-text {
    font-size: 0.85rem;
    color: rgba(74, 69, 58, 0.6);
    margin-top: 5px;
}

.text-danger {
    color: #c74444 !important;
}

.btn-submit-service {
    background-color: transparent;
    color: #D27D2D;
    border: 2px solid #D27D2D;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-submit-service:hover {
    background-color: #D27D2D;
    color: #FDFBF5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 125, 45, 0.3);
}

.form-success-message {
    background-color: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 6px;
    padding: 20px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-success-message i {
    font-size: 2rem;
    color: #43a047;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    border: 2px solid #D27D2D;
    background-color: transparent;
}

.form-check-input:checked {
    background-color: #D27D2D;
    border-color: #D27D2D;
}

.form-check-input:focus {
    border-color: #D27D2D;
    box-shadow: 0 0 0 0.2rem rgba(210, 125, 45, 0.25);
}

.form-check-label {
    margin-left: 8px;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-section {
        padding: 15px;
    }
    
    .form-section-title {
        font-size: 1.2rem;
    }
    
    .driver-block {
        padding: 15px;
    }
}
