﻿/* General container styling */
.container.mt-5 {
    max-width: 900px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px; /* Added bottom margin */
}

/* Heading */
h2 {
    font-family: 'Arial', sans-serif;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Form group spacing */
.form-group.row.mb-3 {
    margin-bottom: 20px !important;
    align-items: flex-start; /* Align labels and inputs at the top */
}

/* Labels */
.control-label {
    font-weight: 600;
    color: #555;
    padding-top: 8px;
    font-size: 16px;
    text-align: left;
}

/* Inputs, Selects, and Textareas */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

    .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
        outline: none;
    }

.custom-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="gray" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="8 10 12 14 16 10"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 2px center;
    padding-right: 1px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
    width: 100%;
    line-height: 1.5;
}

/* Refine the full-span-textarea */
.full-span-textarea {
    width: calc(100% - 16.66%) !important;
    max-width: calc(100% - 150px);
    padding-right: 16.66%; /* Matches Column 1 width */
    box-sizing: border-box;
    padding: 10px 12px;
    margin: 0;
}

/* Validation Messages */
.text-danger {
    font-size: 14px;
    margin-top: 5px;
}

/* reCAPTCHA */
.g-recaptcha {
    margin-top: 20px;
}

/* Submit Button */
.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

/* Responsive Adjustments */
@media (max-width: 576px) {
    .control-label {
        text-align: left;
        margin-bottom: 5px;
    }

    .col-sm-2, .col-sm-4, .col-sm-10 {
        width: 100%; /* Stack everything on small screens */
    }

    .form-group.row.mb-3 {
        margin-bottom: 15px !important;
    }

    .btn-primary {
        width: 100%;
    }

    .full-span-textarea {
        width: 100% !important;
        padding-right: 12px;
    }

    .container.mt-5 {
        margin-bottom: 20px; /* Smaller bottom margin on mobile */
    }
}
