/* ===== PROFESSIONAL FORM STYLES ===== */

/* Form Section Container */
.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.form-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
}

.form-header h1,
.form-header h2,
.form-header h3 {
    color: #333;
    font-weight: 600;
    margin: 0;
    font-size: 28px;
}

.form-header h2 {
    font-size: 24px;
}

.form-header h3 {
    font-size: 20px;
}

/* Grid Layout for Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Label Styling */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input & Select Styling */
.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

/* Textarea */
textarea.form-control {
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
}

/* Input Group */
.input-group .btn {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-left: 8px;
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.input-group .btn:hover {
    border-color: #007bff;
    background-color: #007bff;
    color: white;
}

.input-group .form-control {
    flex: 1;
}

/* Helper Text */
.helper-text {
    color: #666;
    font-size: 12px;
    margin-top: 6px;
    font-style: italic;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-save,
.btn-primary {
    background: #28a745;
    border: none;
    color: white;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.btn-save:hover,
.btn-primary:hover {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-cancel,
.btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-cancel:hover,
.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

/* Alerts */
.alert {
    border-radius: 6px;
    padding: 14px 16px;
    border: 1px solid transparent;
    margin-bottom: 15px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Checkbox & Radio Styling */
.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: #007bff;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
}

.form-check-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-label {
    margin-left: 8px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

/* Form Divider */
.form-divider {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: none;
}

.form-divider h5 {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-row,
    .form-row.three-col {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-section {
        padding: 20px;
    }

    .form-header h1 {
        font-size: 22px;
    }

    .form-header h2 {
        font-size: 18px;
    }

    .form-header h3 {
        font-size: 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-save,
    .btn-cancel,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .input-group .btn {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }

    .input-group {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .form-label {
        font-size: 12px;
    }

    .helper-text {
        font-size: 11px;
    }

    .btn-save,
    .btn-cancel,
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 13px;
    }
}
