.contact-section {
    background: rgb(255, 255, 240, 0.2);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    font-family: "Poppins", sans-serif;
}

.contact-section .heading {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-section .contact-subheading {
    text-align: center;
    color: #666666;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.contact-section .contact-mainheading {
    text-align: center;
    color: #1C2B78;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.contact-section .contact-highlight {
    color: rgb(255, 102, 0);
}

.contact-section .contact-description {
    text-align: center;
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-contain {
    padding: 2rem 0;
}

/* Contact Details Section */
.contact-details-wrapper {
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* border-bottom: 5px solid rgb(237, 87, 50); */
    border-left: 5px solid rgb(237, 87, 50);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.contact-details-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.contact-details-title {
    font-size: 24px;
    font-weight: 700;
    color: #1C2B78;
    margin-bottom: 1rem;
}

.contact-details-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info-item:hover {
    transform: translateX(5px);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1C2B78 0%, #504f93 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background: linear-gradient(135deg, rgb(255, 102, 0) 0%, rgba(255, 102, 0, 0.8) 100%);
    transform: scale(1.1) rotate(5deg);
}

.contact-info-icon i {
    font-size: 22px;
    color: #ffffff;
}

.contact-info-content {
    flex: 1;
}

.contact-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #1C2B78;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-value {
    font-size: 15px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* border-bottom: 5px solid rgb(237, 87, 50); */
    border-right: 5px solid rgb(237, 87, 50);
    border-radius: 18px;
}

.contact-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1C2B78;
    margin-bottom: 1rem;
}

.contact-form-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1C2B78;
    margin-bottom: 0.75rem;
    display: block;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    color: #333333;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form .form-control:focus {
    border-color: rgb(255, 102, 0);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #999999;
    font-size: 14px;
}

/* Select2 Custom Styling - Match Bootstrap Form Select */
.contact-form .select2-container {
    width: 100% !important;
}

.contact-form .select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 0 !important;
    min-height: 48px !important;
    height: 48px !important;
    background: #f8f9fa !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}

.contact-form .select2-container--bootstrap-5 .select2-selection--single {
    height: 48px !important;
}

.contact-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding: 12px 40px 12px 16px !important;
    line-height: 24px !important;
    color: #333333 !important;
    font-size: 15px !important;
    width: 100% !important;
}

.contact-form .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: #999999 !important;
    font-size: 14px !important;
}

.contact-form .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.contact-form .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: rgb(255, 102, 0) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1) !important;
    outline: none !important;
}

.contact-form .select2-container--bootstrap-5 .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
    top: 0 !important;
    width: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.contact-form .select2-container--bootstrap-5 .select2-selection__arrow b {
    border-color: #666666 transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    border-style: solid !important;
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    /* left: 50% !important; */
    transform: translate(-50%, -50%) !important;
}

.contact-form .select2-container--bootstrap-5.select2-container--open .select2-selection__arrow b {
    border-color: rgb(255, 102, 0) transparent transparent transparent !important;
    transform: translate(-50%, -50%) rotate(180deg) !important;
}

.contact-form .select2-dropdown {
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    margin-top: 5px !important;
    overflow: hidden !important;
}

.contact-form .select2-container--bootstrap-5 .select2-results__option {
    padding: 12px 16px !important;
    font-size: 15px !important;
    color: #333333 !important;
    line-height: 1.5 !important;
}

.contact-form .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: rgb(255, 102, 0) !important;
    color: #ffffff !important;
}

.contact-form .select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
    background: rgba(255, 102, 0, 0.1) !important;
    color: rgb(255, 102, 0) !important;
}

.contact-form .select2-container--bootstrap-5 .select2-search--dropdown {
    padding: 8px !important;
    border-bottom: 1px solid #e9ecef !important;
}

.contact-form .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 15px !important;
    width: 100% !important;
}

.contact-form .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: rgb(255, 102, 0) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1) !important;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-text {
    font-size: 12px;
    color: #999999;
    margin-top: 0.5rem;
}

.contact-form input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.contact-form input[type="file"]::-webkit-file-upload-button {
    background: #1C2B78;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form input[type="file"]::-webkit-file-upload-button:hover {
    background: rgb(255, 102, 0);
}

.form-submit-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.btn-submit {
    background: linear-gradient(135deg, rgb(255, 102, 0) 0%, rgba(255, 102, 0, 0.9) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1C2B78 0%, #504f93 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 43, 120, 0.4);
    color: #ffffff;
}

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

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .contact-details-wrapper,
    .contact-form-wrapper {
        margin-bottom: 2rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-section .contact-mainheading {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .contact-details-wrapper,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-section .contact-mainheading {
        font-size: 28px;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-info-content {
        text-align: center;
    }
    
    .form-submit-wrapper {
        justify-content: center;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for form elements */
.contact-form .form-group {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.contact-form .form-group:nth-child(2) { animation-delay: 0.2s; }
.contact-form .form-group:nth-child(3) { animation-delay: 0.3s; }
.contact-form .form-group:nth-child(4) { animation-delay: 0.4s; }
.contact-form .form-group:nth-child(5) { animation-delay: 0.5s; }
.contact-form .form-group:nth-child(6) { animation-delay: 0.6s; }
.contact-form .form-group:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grievance Cards Styles */
.grievance-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 4px solid rgb(255, 102, 0);
    overflow: hidden;
    min-height: 220px;
}

.grievance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgb(255, 102, 0) 0%, rgba(255, 102, 0, 0.6) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.grievance-card:hover::before {
    transform: scaleX(1);
}

.grievance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.grievance-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgb(255, 102, 0) 0%, rgba(255, 102, 0, 0.8) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.grievance-card:hover .grievance-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
}

.grievance-card-icon i {
    font-size: 28px;
    color: #ffffff;
}

.grievance-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1C2B78;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.grievance-card:hover .grievance-card-title {
    color: rgb(255, 102, 0);
}

.grievance-card-content {
    flex: 1;
}

.grievance-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

.grievance-info-item:last-child {
    margin-bottom: 0;
}

.grievance-info-item i {
    color: rgb(255, 102, 0);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.grievance-info-item span {
    flex: 1;
}

.helpline-note {
    font-size: 12px;
    color: rgb(255, 102, 0);
    font-weight: 600;
    font-style: italic;
}

/* Clickable Grievance Card */
.grievance-card-clickable {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.08) 0%, rgba(255, 102, 0, 0.03) 100%);
    border: 2px solid rgba(255, 102, 0, 0.3);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(255, 102, 0, 0.3);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }
    50% {
        border-color: rgba(255, 102, 0, 0.6);
        box-shadow: 0 8px 25px rgba(255, 102, 0, 0.2);
    }
}

.grievance-card-clickable:hover {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.15) 0%, rgba(255, 102, 0, 0.08) 100%);
    border-color: rgb(255, 102, 0);
    animation: none;
}

/* Click Hint Badge */
.grievance-card-clickable::after {
    content: 'Click to Open Form';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgb(255, 102, 0);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.3);
    animation: bounce-hint 2s infinite;
    z-index: 10;
}

@keyframes bounce-hint {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.grievance-card-clickable:hover::after {
    background: #1C2B78;
    animation: none;
    transform: translateY(0) scale(1.05);
}

.grievance-card-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    background: rgb(255, 102, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    opacity: 1;
    transform: translateX(0);
}

.grievance-card-clickable:hover .grievance-card-arrow {
    background: #1C2B78;
    transform: translateX(5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(28, 43, 120, 0.4);
}

/* Additional hint text in content */
.grievance-card-clickable .grievance-info-item {
    color: rgb(255, 102, 0);
    font-weight: 600;
}

.grievance-card-clickable .grievance-info-item i {
    animation: pulse-icon 1.5s infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, rgb(255, 102, 0) 0%, rgba(255, 102, 0, 0.9) 100%);
    color: #ffffff;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 1;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-body .contact-form-wrapper {
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Responsive Design for Grievance Cards */
@media (max-width: 991px) {
    .grievance-card {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
        min-height: 200px;
    }
    
    .grievance-card-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 0.75rem;
    }
    
    .grievance-card-icon i {
        font-size: 24px;
    }
    
    .grievance-card-title {
        font-size: 16px;
        margin-bottom: 0.75rem;
    }
    
    .grievance-info-item {
        font-size: 12px;
        margin-bottom: 0.5rem;
    }
    
    .grievance-card-clickable::after {
        font-size: 10px;
        padding: 0.3rem 0.6rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .grievance-card-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 0.75rem;
        right: 0.75rem;
    }
}

@media (max-width: 767px) {
    .grievance-card {
        padding: 1.25rem;
        min-height: 180px;
    }
    
    .grievance-card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .grievance-card-icon i {
        font-size: 22px;
    }
    
    .grievance-card-title {
        font-size: 15px;
        margin-bottom: 0.75rem;
    }
    
    .grievance-info-item {
        font-size: 12px;
        margin-bottom: 0.5rem;
    }
    
    .grievance-card-clickable::after {
        font-size: 9px;
        padding: 0.25rem 0.5rem;
        top: 0.5rem;
        right: 0.5rem;
        content: 'Click Here';
    }
    
    .grievance-card-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}
