/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: none; /* Hidden by default for placeholder-only design */
}

/* NEW: Horizontal grouping for form fields */
.form-row {
    display: flex;
    gap: 20px; /* Space between fields */
    margin-bottom: 0; /* form-group handles margin */
}

.form-row .form-group {
    margin-bottom: 24px;
    flex: 1;
}

.form-row .half-width {
    /* Explicit width based on flex */
    flex-basis: 50%;
}

/* NEW: Add underline animation for text inputs */
.form-group input,
.form-group textarea {
    position: relative;
}

.form-group input:not([type=submit])::after,
.form-group textarea::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-group input:not([type=submit]):focus::after,
.form-group textarea:focus::after {
    width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Noto Sans Arabic', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column; /* Stack rows on smaller mobile devices */
        gap: 0;
    }
}