/* ==========================================================================
   RS Aerials - Quick Enquiry Form Styling
   ========================================================================== */

#quickenquiryForm {
    max-width: 650px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Form Rows & Groups */
#quickenquiryForm .form-group {
    margin-top:1rem;
    margin-bottom: 1rem;
    text-align: left;
}

#quickenquiryForm .form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

#quickenquiryForm .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
    box-sizing: border-box;
}

/* Labels */
#quickenquiryForm label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #333333;
    font-weight: 600;
}

/* Inputs & Text Fields */
#quickenquiryForm .form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 1rem + 2px);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

/* Input Focus States */
#quickenquiryForm .form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #0056b3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Placeholder Styling */
#quickenquiryForm .form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* Agreement Checkbox Container */
#quickenquiryForm .form-check {
    display: flex;
    align-items: flex-start;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Checkbox Alignment & Sizing */
#quickenquiryForm .form-check-input {
    margin-top: 0.2rem;
    margin-right: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

#quickenquiryForm .form-check-label {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
}

#quickenquiryForm .form-check-label a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

#quickenquiryForm .form-check-label a:hover {
    color: #003d82;
    text-decoration: underline;
}

/* Submit Button */
#quickenquiryForm .btn-outline-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0056b3;
    background-color: transparent;
    border: 2px solid #0056b3;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

#quickenquiryForm .btn-outline-primary:hover,
#quickenquiryForm .btn-outline-primary:focus {
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

#quickenquiryForm .btn-outline-primary:active {
    transform: scale(0.98);
}

/* Form Response Messages */
#formResponse {
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
}

textarea.form-control {
    height: auto;          
    min-height: 150px;     
    resize: vertical;      
    line-height: 1.5;  
       
}

/* Ensure the focus state matches your other inputs */
textarea.form-control:focus {
    border-color: #0056b3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Responsive Breakpoint for Mobile Devices */
@media (max-width: 767.98px) {
    #quickenquiryForm {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    #quickenquiryForm .form-row {
        display: block;
        margin-right: 0;
        margin-left: 0;
    }
    
    #quickenquiryForm .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
    }
}