/* ========================================
   Query Form Section
   ======================================== */
.query-form-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.query-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 161, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(247, 71, 15, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(238, 17, 98, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.query-form-wrapper {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.query-form-header {
    margin-bottom: 2rem;
}

.query-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgb(255, 161, 0) 0%, rgb(247, 71, 15) 50%, rgb(238, 17, 98) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.query-form-title::after,
.query-form-title::before {
    display: none;
    content: none;
}

.query-form-intro {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.query-form-group {
    margin-bottom: 1.5rem;
}

.query-form-label {
    display: block;
    font-weight: 600;
    color: #0d1526;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.optional-label {
    font-weight: 400;
    font-size: 0.85em;
    color: #999;
    font-style: italic;
}

.query-type-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.query-type-option {
    display: flex;
    align-items: center;
}

.query-type-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    accent-color: rgb(255, 161, 0);
    cursor: pointer;
}

.query-type-label {
    font-weight: 500;
    color: #0d1526;
    cursor: pointer;
    margin: 0;
}

.query-privacy-statement {
    background: rgba(255, 161, 0, 0.1);
    border-left: 3px solid rgb(255, 161, 0);
    padding: 1rem;
    border-radius: 4px;
}

.query-privacy-statement p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.query-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0d1526;
    transition: all 0.3s ease;
    background: #ffffff;
}

.query-form-input:focus {
    outline: none;
    border-color: rgb(255, 161, 0);
    box-shadow: 0 0 0 3px rgba(255, 161, 0, 0.1);
}

.query-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.query-input-with-icon {
    position: relative;
}

.query-input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.query-calendar-icon {
    pointer-events: auto !important;
    cursor: pointer;
    color: rgb(255, 161, 0);
    transition: color 0.3s ease;
}

.query-calendar-icon:hover {
    color: rgb(247, 71, 15);
}

.query-input-with-icon .query-form-input {
    padding-right: 3rem;
}

/* Phone Input with Country Code */
.query-phone-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.query-country-code {
    padding: 0.75rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0d1526;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 75px;
    max-width: 85px;
    flex-shrink: 0;
    text-align: center;
}

.query-country-code:hover {
    border-color: rgb(255, 161, 0);
}

.query-country-code:focus {
    outline: none;
    border-color: rgb(255, 161, 0);
    box-shadow: 0 0 0 3px rgba(255, 161, 0, 0.1);
}

.query-phone-input {
    flex: 1;
}

/* Select Dropdown */
.query-form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.query-form-select:hover {
    border-color: rgb(255, 161, 0);
    background-color: #fff9f0;
}

.query-form-select:focus {
    outline: none;
    border-color: rgb(255, 161, 0);
    box-shadow: 0 0 0 3px rgba(255, 161, 0, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgb(255, 161, 0)' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.query-form-select {
    color: #0d1526;
}

.query-form-select:not([value=""]) {
    color: #0d1526;
    font-weight: 500;
}

.query-form-select option {
    background: #ffffff;
    color: #0d1526;
    padding: 0.5rem;
}

.query-form-select option:checked {
    background: #0d1526 !important;
    color: #ffffff !important;
}

.query-form-select option:hover {
    background: rgb(255, 161, 0) !important;
    color: #ffffff !important;
}

/* Date Input Icon */
.query-date-input {
    cursor: pointer;
}

.query-calendar-icon {
    cursor: pointer;
    pointer-events: auto !important;
}

.query-date-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Input Placeholder Styling */
.query-form-input::placeholder,
.query-form-textarea::placeholder {
    color: #999;
    opacity: 1;
}

.query-form-input::-webkit-input-placeholder,
.query-form-textarea::-webkit-input-placeholder {
    color: #999;
}

.query-form-input::-moz-placeholder,
.query-form-textarea::-moz-placeholder {
    color: #999;
    opacity: 1;
}

.query-form-input:-ms-input-placeholder,
.query-form-textarea:-ms-input-placeholder {
    color: #999;
}

.query-required-note {
    font-size: 0.85rem;
    color: #999;
}

.query-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.query-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.query-checkbox-wrapper input[type="checkbox"]:checked {
    background: linear-gradient(135deg, rgb(255, 161, 0) 0%, rgb(247, 71, 15) 100%);
    border-color: rgb(255, 161, 0);
}

.query-checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.query-checkbox-wrapper input[type="checkbox"]:hover {
    border-color: rgb(255, 161, 0);
}

.query-checkbox-label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    cursor: pointer;
    margin: 0;
}

.query-checkbox-label a {
    color: rgb(255, 161, 0);
    text-decoration: none;
    font-weight: 500;
}

.query-checkbox-label a:hover {
    text-decoration: underline;
    color: rgb(247, 71, 15);
}

.query-submit-btn {
    background: rgb(255, 161, 0);
    color: #ffffff;
    border: none;
    padding: 0.875rem 3rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 161, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.query-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(89deg, rgb(255, 161, 0) 11.51%, rgb(247, 71, 15) 52.88%, rgb(238, 17, 98) 92.44%);
    transition: left 0.3s ease;
    z-index: 0;
}

.query-submit-btn span {
    position: relative;
    z-index: 1;
}

.query-submit-btn .btn-loader {
    display: none;
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.query-submit-btn.loading .btn-loader {
    display: inline-block;
}

.query-submit-btn.loading .btn-text {
    opacity: 0.8;
}

.query-submit-btn:hover::before {
    left: 0;
}

.query-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 161, 0, 0.4);
}

.query-submit-btn:active::before {
    left: 0;
}

.query-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.query-submit-btn:active {
    transform: translateY(0);
}

/* ========================================
   Membership Card Section (Common Component)
   ======================================== */
.membership-card-section {
    background: #f8f9fa;
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.membership-card-wrapper {
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 3rem 4.5rem;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.membership-card-title {
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgb(255, 161, 0) 0%, rgb(247, 71, 15) 50%, rgb(238, 17, 98) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.75rem;
    text-transform: lowercase;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-style: italic;
    display: inline-block;
}

.membership-card-intro {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.85;
    margin-bottom: 1.75rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.membership-card-contact {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.membership-contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.membership-contact-label {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.membership-url-link,
.membership-email-link {
    font-size: 1rem;
    color: rgb(255, 161, 0);
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

.membership-url-link:hover,
.membership-email-link:hover {
    color: rgb(247, 71, 15);
    text-decoration: underline;
    transform: translateY(-1px);
}

.membership-contact-separator {
    color: #999;
    font-size: 1rem;
    font-weight: 300;
    margin: 0 0.25rem;
}

/* Responsive Membership Card */
@media (max-width: 991px) {
    .membership-card-section {
        padding: 3rem 0;
    }
    
    .membership-card-wrapper {
        padding: 2.25rem 3.5rem;
        max-width: 1000px;
    }
    
    .membership-card-title {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }
    
    .membership-card-intro {
        font-size: 1.05rem;
        line-height: 1.8;
    }
}

@media (max-width: 767px) {
    .membership-card-section {
        padding: 2.5rem 0;
    }
    
    .membership-card-wrapper {
        padding: 2rem 2.5rem;
        max-width: 100%;
    }
    
    .membership-card-title {
        font-size: 1.9rem;
        margin-bottom: 1.5rem;
        letter-spacing: 0.8px;
    }
    
    .membership-card-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.75;
    }
    
    .membership-card-contact {
        margin-top: 1.5rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .membership-contact-item {
        gap: 0.4rem;
    }
    
    .membership-contact-label {
        font-size: 0.95rem;
    }
    
    .membership-url-link,
    .membership-email-link {
        font-size: 0.98rem;
    }
    
    .membership-contact-separator {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .membership-card-section {
        padding: 2rem 0;
    }
    
    .membership-card-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .membership-card-wrapper {
        padding: 1.5rem 1.25rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .membership-card-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        letter-spacing: 0.5px;
        text-align: center;
        width: 100%;
    }
    
    .membership-card-intro {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.65;
        text-align: center;
        width: 100%;
    }
    
    .membership-card-contact {
        margin-top: 1rem;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    
    .membership-contact-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .membership-contact-label {
        font-size: 0.8rem;
        color: #333;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .membership-url-link,
    .membership-email-link {
        font-size: 0.8rem;
        word-break: break-word;
        text-align: center;
        display: inline-block;
        flex: 0 1 auto;
    }
    
    .membership-contact-separator {
        font-size: 0.8rem;
        margin: 0 0.15rem;
    }
}

/* ========================================
   Contact Departments Section
   ======================================== */
.contact-departments-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact-departments-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 161, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(247, 71, 15, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.contact-dept-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 2px solid;
    border-image: linear-gradient(89deg, rgb(255, 161, 0) 11.51%, rgb(247, 71, 15) 52.88%, rgb(238, 17, 98) 92.44%) 1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 161, 0, 0.2);
}

.contact-dept-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(89deg, rgb(255, 161, 0) 11.51%, rgb(247, 71, 15) 52.88%, rgb(238, 17, 98) 92.44%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.contact-dept-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-dept-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-dept-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.contact-dept-phone {
    font-size: 1.1rem;
    color: #0d1526;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-word;
}

.contact-dept-phone:hover {
    color: rgb(255, 161, 0);
    text-decoration: none;
    transform: translateX(3px);
}

.contact-dept-email {
    font-size: 1rem;
    color: rgb(255, 161, 0);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-all;
}

.contact-dept-email:hover {
    color: rgb(247, 71, 15);
    text-decoration: underline;
    transform: translateX(3px);
}

/* Responsive Contact Departments */
@media (max-width: 991px) {
    .contact-dept-card {
        padding: 1.75rem;
    }
    
    .contact-dept-title {
        font-size: 1.5rem;
    }
    
    .contact-dept-phone {
        font-size: 1rem;
    }
    
    .contact-dept-email {
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .contact-departments-section {
        padding: 3rem 0;
    }
    
    .contact-dept-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-dept-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-dept-info {
        gap: 0.875rem;
    }
    
    .contact-dept-label {
        font-size: 0.85rem;
    }
    
    .contact-dept-phone {
        font-size: 0.95rem;
    }
    
    .contact-dept-email {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .contact-departments-section {
        padding: 2rem 0;
    }
    
    .contact-dept-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .contact-dept-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .contact-dept-info {
        gap: 0.75rem;
    }
    
    .contact-dept-item {
        gap: 0.4rem;
    }
    
    .contact-dept-label {
        font-size: 0.8rem;
    }
    
    .contact-dept-phone {
        font-size: 0.9rem;
    }
    
    .contact-dept-email {
        font-size: 0.85rem;
    }
}

/* Responsive Query Form */
@media (max-width: 991px) {
    .query-form-wrapper {
        padding: 2.5rem;
    }
    
    .query-form-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .query-form-wrapper {
        padding: 2rem;
    }
    
    .query-form-title {
        font-size: 1.75rem;
    }
    
    .query-form-intro {
        font-size: 0.9rem;
    }
    
    .query-type-options {
        gap: 1rem;
    }
}

@media (max-width: 575px) {
    .query-form-section {
        padding: 2rem 0;
    }
    
    .query-form-wrapper {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .query-form-title {
        font-size: 1.5rem;
    }
    
    .query-form-intro {
        font-size: 0.85rem;
    }
    
    .query-form-group {
        margin-bottom: 1.25rem;
    }
    
    .query-form-input {
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .query-country-code {
        padding: 0.65rem 0.5rem;
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    .query-submit-btn {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .query-phone-wrapper {
        flex-direction: row;
    }
    
    .query-country-code {
        min-width: 70px;
        max-width: 80px;
        font-size: 0.85rem;
        padding: 0.65rem 0.4rem;
    }
}

