/* ===============================================
   FORM STYLES
   =============================================== */

/* Form Containers */
.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

/* Form Controls */
.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    transition: border-color 0.3s;
    color: var(--text-color);
    margin: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Required Fields */
.required {
    color: var(--danger-color);
    margin-left: 4px;
}

/* Form Control Static */
.form-control-static {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    background-color: #f5f5f5;
}

/* Form Rows */
.form-row {
    display: flex;
    margin: 0 -10px;
    flex-wrap: wrap;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    transition: color 0.3s ease;
}

.input-with-icon.textarea i {
    top: 22px;
    transform: none;
}

.input-with-icon input:focus + i,
.input-with-icon select:focus + i,
.input-with-icon textarea:focus + i {
    color: var(--primary-color);
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
    padding-right: 42px;
    padding-left: 12px;
}

/* Search Form Styles */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.search-form input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 42px 14px 12px;    font-family: var(--font-family);
    min-width: 200px;
    position: relative;
}

/* search-form .btn styles are now in shared/buttons.css */

/* Search Containers */
.search-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: var(--card-shadow);
}

.search-container input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
}

.search-container button {
    margin-left: 10px;
}

/* Improved Form Action Styles */
.form-actions-centered {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0 20px;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;    border-radius: 8px;
}

/* form-actions-centered .btn styles are now in shared/buttons.css */

/* Responsive Form Styles */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-container {
        padding: 20px;
    }
      .form-actions-centered {
        flex-direction: column;
    }
    
    /* Responsive button styles moved to shared/buttons.css */
}
