.questionnaire-section {
    padding: 60px 0;
    color: #fff;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.questionnaire-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.questionnaire-title {
    text-align: center;
    margin-bottom: 30px;
    min-height: 140px;
    /* Ensure consistent height for alignment */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.questionnaire-section .section-title {
    color: var(--primary-gold);
}

.questionnaire-title h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.questionnaire-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.questionnaire-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-left: 5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-gold);
    background: rgba(0, 0, 0, 0.4);
    outline: none;
    box-shadow: 0 0 0 3px rgba(181, 156, 110, 0.1);
}

::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

/* Fix for browser autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #2a2a2a inset !important;
    -webkit-text-fill-color: white !important;
}

/* Custom Select Dropdown Arrow */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b59c6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-select option {
    background: #2a2a2a;
    color: #fff;
}

/* File Inputs Styling */
.file-inputs-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.file-input-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(181, 156, 110, 0.4);
    border-radius: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.file-input-label:hover {
    background: rgba(181, 156, 110, 0.1);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.file-input-label i {
    font-size: 1.1rem;
}

.btn-submit {
    background: var(--primary-gold);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    align-self: center;
    min-width: 200px;
}

.btn-submit:hover {
    background: #cfb583;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(181, 156, 110, 0.3);
}

/* Forms Grid Layout */
.forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    /* align-items: start; Removed to allow stretching for equal height */
}

.questionnaire-wrapper {
    height: 100%;
    /* Will fill the grid cell height */
    display: flex;
    flex-direction: column;
    background: rgba(30, 30, 30, 0.6);
    /* Slightly darker consistent background */
    border: 1px solid rgba(181, 156, 110, 0.2);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.questionnaire-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute space evenly */
}

.questionnaire-form .btn-submit {
    margin-top: 30px;
    /* Consistent margin */
    width: 100%;
}

.form-textarea {
    min-height: 120px;
    /* Standard height for both */
    max-height: 300px;
    resize: vertical;
}

/* Remove the huge forced height for general form */
.general-form textarea {
    min-height: 120px !important;
    height: auto;
}

@media (max-width: 992px) {
    .forms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .questionnaire-wrapper {
        padding: 25px;
    }
}

#q-pickup {
    accent-color: var(--primary-gold);
    width: 20px;
    height: 20px;
}