/* Dynamic Form Field Widths - Only width-specific styles, preserving original form styles */

/* Half width fields (2 per row) */
section.contact-form .form .form-row .form-group-half {
    flex: 0 0 calc(50% - 10px);
}

/* Third width fields (3 per row) */
section.contact-form .form .form-row .form-group-third {
    flex: 0 0 calc(33.333% - 14px);
}

/* Quarter width fields (4 per row) */
section.contact-form .form .form-row .form-group-quarter {
    flex: 0 0 calc(25% - 15px);
}

/* Textarea styling - matching original input styles */
section.contact-form .form .form-group textarea {
    width: 100%;
    padding: 26px 6px 26px 34px;
    border: 1px solid var(--secondary-color);
    border-radius: 1rem;
    background: rgba(217, 217, 217, 0.04) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    font-size: 1.6rem;
    font-family: var(--font-family);
    outline: none;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

section.contact-form .form .form-group textarea:focus {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.4);
}

section.contact-form .form .form-group textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}

section.contact-form .form .form-group textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}

section.contact-form .form .form-group textarea:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}

section.contact-form .form .form-group textarea::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}

section.contact-form .form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}

section.contact-form .form .form-group textarea.error {
    border-color: #FF0000;
}

/* Responsive adjustments - only for width classes */
@media (max-width: 768px) {
    section.contact-form .form .form-row .form-group-half,
    section.contact-form .form .form-row .form-group-third,
    section.contact-form .form .form-row .form-group-quarter {
        flex: 1 1 100% !important;
    }
}

