.card-gap{
    margin:20px;
}

/* ===================================
   BANNER STYLES (Same as About Page)
   =================================== */
.section.top {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
    padding: 60px 20px;
    position: relative;
}

.section.top h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section.top .section-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.section.top h1,
.section.top .section-subtitle {
    color: white;
}

/* Contact Header Banner Background */
.contact-header-banner {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?auto=format&fit=crop&w=1950&q=80');
}

/* Contact Header Styling */
.contact-header {
    position: relative;
    overflow: hidden;
    padding: 120px 20px !important;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.contact-header h1,
.contact-header p {
    position: relative;
    z-index: 1;
}

/* ===== Contact Content Section ===== */
.contact-content-section {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    padding: 60px 20px 80px;
}

.contact-content-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 48px;
}

.contact-form-wrapper h2 {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.form-subtitle {
    color: #64748b;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 40px;
}
/* Contact Info Section */
.contact-info-section {
    margin-top: 48px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Phone card - Darker phone/communication image */
.contact-info-grid .info-card:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80&sat=-30&brightness=90');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Email card - Darker email/digital communication image */
.contact-info-grid .info-card:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80&sat=-30&brightness=90');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Location card - Darker office/map location image */
.contact-info-grid .info-card:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80&sat=-30&brightness=90');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Darker background overlay for better text contrast */
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.88); /* Increased opacity */
    z-index: -1;
    border-radius: 16px;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    border-color: #3b82f6;
}

/* Slightly darker overlay on hover */
.info-card:hover::before {
    background: rgba(255, 255, 255, 0.95);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 2;
}

.info-icon i {
    color: white;
    font-size: 1.5rem;
}

.info-card h3 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.info-card p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.info-note {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}
/* Map Container */
.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 16px;
}

/* two-column rows in the form */
.form-row{
    display:flex;
    gap:24px;
}

.form-row .form-group{
    flex:1;
}

.form-group{
    margin-bottom: 24px;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.form-icon i {
    font-size: 2rem;
    color: white;
}

.form-header h2 {
    margin-bottom: 12px;
}

.form-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    margin-top: 40px;
}

.form-label{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight:600;
    color: #334155;
    font-size: 0.95rem;
}

.form-label i {
    color: #3b82f6;
    font-size: 0.9rem;
}

.required {
    color: #ef4444;
    margin-left: 4px;
}

.form-control{
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

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

/* Custom Checkbox */
.privacy-check {
    margin: 32px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
}

.checkbox-text {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 2px;
}

/* Submit Button Styling */
.submit-btn,
button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.submit-btn:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.submit-btn:active,
button[type="submit"]:active {
    transform: translateY(0);
}

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

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

/* Section Styling */
.sectionss {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    padding: 40px 20px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 992px){
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-wrapper {
        padding: 36px;
    }
}

/* ===== Mail Configuration Section ===== */
.mail-config-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin: 48px 0;
}

.mail-config-title {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mail-config-title i {
    color: #3b82f6;
}

.mail-config-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 32px;
}

.mail-info-table {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.mail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.mail-row:last-child {
    border-bottom: none;
}

.mail-row.security-note {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    margin-top: 16px;
    padding: 20px;
}

.mail-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.mail-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mail-text {
    flex: 1;
    color: #1e293b;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

.copy-btn {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 45px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.security-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #92400e;
}

.security-warning i {
    color: #f59e0b;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.mail-config-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mail-config-note i {
    color: #3b82f6;
    font-size: 1.2rem;
    margin-top: 2px;
}

.mail-config-note p {
    color: #1e40af;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px){
    .form-row{
        flex-direction: column;
    }

    .contact-header {
        padding: 80px 20px !important;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .contact-form-wrapper h2 {
        font-size: 1.6rem;
    }

    .info-card {
        padding: 28px 20px;
    }

    .mail-config-section {
        padding: 24px 20px;
    }

    .mail-config-title {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 8px;
    }

    .mail-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .mail-label {
        font-size: 0.9rem;
    }

    .mail-text {
        font-size: 0.85rem;
        padding: 8px 12px;
        word-break: break-all;
    }

    .copy-btn {
        min-width: 40px;
        height: 38px;
        padding: 8px 12px;
    }

    .security-warning {
        font-size: 0.85rem;
    }

    .mail-config-note {
        flex-direction: column;
        padding: 12px 16px;
    }
}

/* ===== Success/Error Message Modal ===== */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message-modal.show {
    opacity: 1;
}

.message-content {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.message-modal.show .message-content {
    transform: scale(1);
}

.message-icon {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
}

.message-icon svg {
    width: 100%;
    height: 100%;
}

/* Success icon animation */
.success-modal .circle-animate {
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    animation: drawCircle 0.6s ease-out forwards;
}

.success-modal .check-animate {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.4s ease-out 0.4s forwards;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Error icon animation */
.error-modal .circle-animate {
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    animation: drawCircle 0.6s ease-out forwards;
}

.error-modal .x-animate {
    stroke-dasharray: 56;
    stroke-dashoffset: 56;
    animation: drawX 0.4s ease-out 0.4s forwards;
}

@keyframes drawX {
    to {
        stroke-dashoffset: 0;
    }
}

.message-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.message-text {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.message-close-btn {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.message-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

@media (max-width: 768px) {
    .message-content {
        padding: 36px 24px;
    }

    .message-title {
        font-size: 1.5rem;
    }

    .message-text {
        font-size: 0.95rem;
    }

    .message-close-btn {
        padding: 12px 32px;
        font-size: 0.95rem;
    }
}
