/* Form Styles */
.form-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section > .section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-section-group {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-group:last-child {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(234, 93, 0, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Custom Select Styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .form-section {
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
    }

    .form-section-group {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.625rem 0.875rem;
    }

    select.form-control {
        padding-right: 2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .form-control:focus {
        font-size: 16px;
    }

    select.form-control {
        font-size: 16px;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .form-control {
        border: 2px solid ButtonText;
    }

    .form-control:focus {
        outline: 2px solid Highlight;
    }
}
