/* Contact Form Styles - Clean and Simple */

/* Ensure form container takes full width */
.form-block,
.c-form {
    width: 100%;
    max-width: 100%;
}

/* Basic form field spacing - optimized for better UX */
.form-field {
    margin-bottom: 8px;
    width: 100%;
}

/* Form row layout for two-column inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 8px;
    width: 100%;
}

/* Remove margin from form-fields inside form-rows */
.form-row .form-field {
    margin-bottom: 0;
    width: 100%;
}

/* Form inputs styling */
.form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid var(--white-20);
    border-radius: 8px;
    background-color: var(--white-15);
    color: var(--white);
    font-size: 16px;
    line-height: 1.4;
    min-height: 48px;
}

.form-input::placeholder {
    color: var(--white-50);
    opacity: 1;
}

.form-input:focus {
    outline: none;
    border-color: var(--ng-accent);
    box-shadow: 0 0 0 2px rgba(24, 224, 106, 0.2);
}

/* Dropdown arrow */
select.form-input {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23ffffff' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.form-input::-ms-expand {
    display: none;
}

/* Error states */
.field-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 8px;
    padding: 6px 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}

.form-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: none;
}

/* Success message */
.form-success {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 10px;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #22c55e;
    font-size: 14px;
    text-align: center;
    display: none;
}

/* Radio buttons and checkboxes */
.radio-group {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

/* Button spacing */
button {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Mobile responsive - simplified */
@media (max-width: 768px) {
    .form-row {
        display: contents;
        grid-template-columns: none;
        gap: 0;
        margin-bottom: 0;
        width: 100%;
    }
    
    .form-field {
        margin-bottom: 8px !important;
        width: 100%;
        display: block;
    }
    
    .form-row .form-field {
        margin-bottom: 8px !important;
        width: 100%;
        display: block;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .form-field {
        margin-bottom: 6px !important;
    }
    
    .form-row .form-field {
        margin-bottom: 6px !important;
    }
    
    .form-input {
        min-height: 44px;
        padding: 10px 14px;
    }
    
    .radio-group {
        gap: 4px;
    }
}