/* =====================================================
   NEXTNOMIC – CONTACT PAGE CSS
   Page ID: 11
===================================================== */

/* FIX ASTRA CONTAINER FOR CONTACT PAGE */
.page-id-11 .ast-container,
body.page-template-contact-page .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* BASE CONTAINER */
.nx-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* HERO SECTION */
.nx-contact-hero {
    background: linear-gradient(135deg, #0b0c2a 0%, #1a1b4d 100%);
    color: #ffffff;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nx-contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6a00ff, #00b894, #6a00ff);
}

.nx-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.nx-contact-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #d1d5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nx-hero-subtitle {
    font-size: 18px;
    color: #b8bcff;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* MAIN CONTENT */
.nx-contact-main {
    padding: 80px 0;
    background: #ffffff;
}

.nx-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

/* LEFT COLUMN: Contact Info */
.nx-contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nx-info-card {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 30px;
    border-left: 4px solid #6a00ff;
}

.nx-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.nx-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(106, 0, 255, 0.1), rgba(106, 0, 255, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nx-info-header h2 {
    font-size: 22px;
    color: #111;
    margin: 0;
    font-weight: 600;
}

.nx-company-name {
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    font-size: 17px;
}

.nx-info-content address p {
    margin: 8px 0;
    color: #555;
    line-height: 1.5;
    font-style: normal;
}

/* CONTACT CHANNELS */
.nx-contact-channels {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 30px;
    border-left: 4px solid #00b894;
}

.nx-channel {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e6e9f0;
}

.nx-channel:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nx-channel:first-child {
    padding-top: 0;
}

.nx-channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nx-channel-icon.phone {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

.nx-channel-icon.email {
    background: linear-gradient(135deg, #6a00ff, #8a2be2);
}

.nx-channel-details h3 {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.nx-contact-link {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.nx-contact-link:hover {
    color: #6a00ff;
}

.nx-channel-note {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* SERVICES CARD */
.nx-services-card {
    background: linear-gradient(135deg, #0b0c2a 0%, #1a1b4d 100%);
    border-radius: 16px;
    padding: 35px 30px;
    color: white;
}

.nx-services-card h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: white;
    font-weight: 600;
}

.nx-services-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nx-service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
}

.nx-check-icon {
    width: 24px;
    height: 24px;
    background: #00b894;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.nx-service-item span:last-child {
    color: #e0e2ff;
    font-size: 16px;
}

/* RIGHT COLUMN: FORM */
.nx-contact-form {
    position: relative;
}

.nx-form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #eef2f7;
}

.nx-form-header {
    text-align: center;
    margin-bottom: 35px;
}

.nx-form-header h2 {
    font-size: 32px;
    color: #111;
    margin-bottom: 10px;
    font-weight: 700;
}

.nx-form-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* FORM STYLES */
.nx-contact-form-inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nx-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nx-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nx-form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nx-form-group input,
.nx-form-group select,
.nx-form-group textarea {
    padding: 16px 18px;
    border: 2px solid #e6e9f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: "Poppins", Arial, sans-serif;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.nx-form-group input:focus,
.nx-form-group select:focus,
.nx-form-group textarea:focus {
    outline: none;
    border-color: #6a00ff;
    box-shadow: 0 0 0 4px rgba(106, 0, 255, 0.1);
}

.nx-form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

.nx-privacy-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 12px;
    margin-top: 10px;
}

.nx-privacy-agreement input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    accent-color: #6a00ff;
    flex-shrink: 0;
}

.nx-privacy-agreement label {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.nx-privacy-agreement a {
    color: #6a00ff;
    font-weight: 600;
    text-decoration: none;
}

.nx-privacy-agreement a:hover {
    text-decoration: underline;
}

.nx-submit-btn {
    background: linear-gradient(135deg, #6a00ff, #8a2be2);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.nx-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(106, 0, 255, 0.3);
}

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

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

.nx-form-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f2f5;
}

.nx-security-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    justify-content: center;
    text-align: center;
}

/* FULL-WIDTH MAP */
.nx-full-map {
    width: 100%;
    background: white;
    border-top: 1px solid #eef2f7;
}

.nx-map-header {
    padding: 40px 0 30px;
    text-align: center;
}

.nx-map-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.nx-map-title svg {
    width: 32px;
    height: 32px;
}

.nx-map-title h2 {
    font-size: 32px;
    color: #111;
    margin: 0;
    font-weight: 700;
}

.nx-location-address {
    font-size: 18px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.nx-map-container {
    width: 100%;
    height: 450px;
}

.nx-map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .nx-contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nx-contact-hero h1 {
        font-size: 42px;
    }

    .nx-form-header h2 {
        font-size: 28px;
    }

    .nx-map-title h2 {
        font-size: 28px;
    }

    .nx-location-address {
        font-size: 16px;
    }

    .nx-map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nx-contact-hero {
        padding: 80px 0 60px;
    }

    .nx-contact-main {
        padding: 60px 0;
    }

    .nx-contact-hero h1 {
        font-size: 36px;
    }

    .nx-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nx-form-card,
    .nx-info-card,
    .nx-contact-channels,
    .nx-services-card {
        padding: 25px;
    }

    .nx-form-header h2 {
        font-size: 26px;
    }

    .nx-map-header {
        padding: 30px 0 25px;
    }

    .nx-map-title {
        flex-direction: column;
        gap: 10px;
    }

    .nx-map-title h2 {
        font-size: 26px;
    }

    .nx-map-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .nx-contact-hero h1 {
        font-size: 32px;
    }

    .nx-hero-subtitle {
        font-size: 16px;
    }

    .nx-form-card {
        padding: 20px;
    }

    .nx-info-header,
    .nx-map-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nx-channel {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nx-map-title h2 {
        font-size: 24px;
    }

    .nx-location-address {
        font-size: 15px;
        padding: 0 20px;
    }

    .nx-map-container {
        height: 300px;
    }
}

/* FORCE LOAD FONTS */
body {
    font-family: "Poppins", Arial, sans-serif !important;
    line-height: 1.6;
    color: #333;
}