/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: #007bff;
}

/* Navigation Bar */
.navbar {
    background: #004085;
    color: white;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar .nav-links li {
    display: inline;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1em;
}

.navbar .nav-links a:hover {
    text-decoration: underline;
}

/* Header/Hero */
.hero {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #009ed8;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.checkPhoneBtn {
    display: inline-block;
    padding: 15px 30px;
    background: #FFFFFF;
    color: #009ed8;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background 0.3s ease;
}

.checkPhoneBtn:hover {
    background: #0056b3;
}

/* Information Section */
.info {
    padding: 40px 0;
    text-align: center;
}

.operator-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.operator-logo {
    width: 150px;
    margin: 0 20px;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.operator-logo:hover {
    filter: grayscale(0);
}

/* How it Works Section */
.how-it-works {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 30px;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    margin: 20px;
    flex-basis: 250px;
}

.step-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

/* Device List Section */
.device-list {
    padding: 40px 0;
}

/* Search Input Styles */
#search-box {
    display: block;
    width: calc(100% - 60px);
    max-width: 500px;
    padding: 12px 20px;
    margin: 20px auto;
    border: 2px solid #3498db;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

#search-box:focus {
    border-color: #2980b9;
}

/* Table Styles */
#compatibilityTable {
    width: 100%;
    border-collapse: collapse;
}

#compatibilityTable thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #009ed8;
    color: white;
    border-bottom: 2px solid #002752;
}

#compatibilityTable th {
    background-color: #009ed8;
    color: white;
    border-bottom: 2px solid #002752;
    padding: 15px 20px;
    text-align: left;
}

#compatibilityTable tbody tr {
    background-color: #ffffff;
}

#compatibilityTable tbody tr:nth-child(even) {
    background-color: #e9ecef;
}

#compatibilityTable tbody tr:hover {
    background-color: #d6e9f8;
}

#compatibilityTable th:hover {
    background-color: #0056b3;
}

#compatibilityTable th i {
    margin-left: 10px;
    float: none;
}

#compatibilityTable td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#table-container {
    position: relative;
    max-height: 600px;
    overflow-y: auto;
    margin: 20px 0;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* FAQ Section */
.faq {
    padding: 40px 0;
    background: #f8f9fa;
}

.accordion {
    width: 100%;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background: #eee;
    color: #333;
    padding: 15px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #ddd;
}

.accordion-content {
    padding: 15px;
    display: none;
    background: #fff;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #fff;
}

footer .social-links {
    margin: 10px 0;
}

footer .social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2em;
}

footer .back-to-top {
    display: block;
    margin-top: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
}

footer .back-to-top:hover {
    text-decoration: underline;
}

/* Disclaimer Section */
.disclaimer {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .accordion-content {
        max-height: initial;
        padding-left: 20%;
    }
}

/* Modal Styles */
#modalDialog {
    display: flex;
    justify-content: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 64, 133, 0.7);
    z-index: 1000;
    overflow: auto;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.close {
    position: absolute;
    top: 0.1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-form {
    display: grid;
    gap: 1rem;
    border: 1px solid #c5d1d5;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-check-checkboxes {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.5rem 0;
}

.form-check-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-label {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 auto;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.form-check-input {
    margin: 0.5rem 0;
    padding: 0.5rem;
}

.submitBtn {
    display: inline-block;
    padding: 10px 20px;
    color: #009ed8;
    background-color: #FFFFFF;
    border: 1px solid #009ed8;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s ease;
    margin: 0 10px;
}

.submitBtn:hover {
    background: hsl(210, 14%, 75%);
}

.resetBtn {
    display: inline-block;
    padding: 10px 20px;
    color: #009ed8;
    background-color: #FFFFFF;
    border: 1px solid #009ed8;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s ease;
    margin: 0 10px;
}

.resetBtn:hover {
    background: hsl(210, 14%, 75%);
}

#btn-group {
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Search Input Styles */
#user-search-box {
    display: block;
    width: calc(100% - 60px);
    max-width: 500px;
    padding: 12px 20px;
    margin: 20px auto;
    border: 2px solid #3498db;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

#user-search-box:focus {
    border-color: #2980b9;
}

/* User Device Table Styles */
#user-table-container {
    position: relative;
    max-height: 600px;
    overflow-y: auto;
    margin: 20px 0;
}

#userDeviceTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    /* Add some space above the table */
}

#userDeviceTable thead {
    background-color: #f0f0f0;
    /* Light gray background for header */
    color: #333;
    /* Dark text for header */
    font-weight: bold;
}

#userDeviceTable th {
    padding: 15px 20px;
    text-align: left;
    border: none;
}

#userDeviceTable td {
    padding: 15px 20px;
    text-align: left;
    border: none;
}

#userDeviceTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
    /* Slightly lighter background for even rows */
}

#userDeviceTable th i {
    margin-left: 5px;
    /* Space between text and sort icon */
}

#userDeviceTable thead {
    background-color: #009ed8;
    color: white;
    border-bottom: 2px solid #002752;
}

#userDeviceTable th {
    background-color: #009ed8;
    color: white;
    border-bottom: 2px solid #002752;
}

#userDeviceTable tbody tr {
    background-color: #ffffff;
}

#userDeviceTable tbody tr:nth-child(even) {
    background-color: #e9ecef;
}

#userDeviceTable tbody tr:hover {
    background-color: #d6e9f8;
}

#userDeviceTable th:hover {
    background-color: #0056b3;
}

.success-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.submission-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
}

.submission-info h2 {
    color: #009ed8;
    margin-bottom: 15px;
}

.submission-info p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

#useSubmitButton {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: #009ed8;
    color: #f0f8ff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow:
        0 8px 15px rgba(0, 158, 216, 0.15),
        0 4px 0 rgba(0, 158, 216, 0.3);
    transform: translateY(-2px);
}

#useSubmitButton:hover {
    background: #0056b3;
    transform: translateY(-4px);
    box-shadow:
        0 12px 20px rgba(0, 158, 216, 0.25),
        0 6px 0 rgba(0, 158, 216, 0.3);
}

#useSubmitButton:active {
    transform: translateY(0);
    box-shadow:
        0 4px 8px rgba(0, 158, 216, 0.2),
        0 2px 0 rgba(0, 158, 216, 0.3);
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.info-main {
    margin-bottom: 20px;
}

.info-highlight {
    font-size: 1.2em;
    color: #009ed8;
    margin-bottom: 20px;
}

.info-description {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.info-benefits {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

.info-benefits li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
    /* Reduced from 25px */
    margin-left: 10px;
    /* Added margin */
}

.info-benefits li:before {
    content: "✓";
    color: #009ed8;
    position: absolute;
    left: 25%;
    top: 50%;
    /* Added for vertical centering */
    transform: translateY(-50%);
    /* Added for vertical centering */
}

.info-note {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #009ed8;
    margin-top: 20px;
}

.info-note p {
    margin: 0;
    color: #666;
}

.info-alert {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-alert h2 {
    color: #009ed8;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.info-message {
    max-width: 800px;
    margin: 0 auto;
}

.primary-text {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.secondary-text {
    font-size: 1.2em;
    color: #444;
    margin-bottom: 15px;
}

.helper-text {
    font-size: 1.1em;
    color: #666;
}

.highlight {
    color: #009ed8;
    font-weight: bold;
}

.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f44336;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.error-message i {
    margin-right: 10px;
}

.close-error {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
}

.close-error:hover {
    color: #f0f0f0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* Responsive Table */
@media (max-width: 768px) {
    #table-container {
        width: 90%;
        margin: 20px auto;  /* Center the container */
        display: flex;
        flex-direction: column;
        align-items: center;  /
    }

    #compatibilityTable {
        display: block;
        overflow-x: auto;
    }

    #compatibilityTable thead {
        display: none;
    }

    #compatibilityTable tr {
        /* display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd; */
        display: flex;
        flex-wrap: wrap;
        width: 96%;
        border: 1px solid #ddd;
        margin-bottom: 15px;
        margin-right: 5px;
        border-radius: 10px;
    }

    #compatibilityTable td {
        display: flex;
        justify-content: space-between;
        /* Align label and value */
        align-items: center;
        text-align: right;
        width: 100%;
        padding: 12px 15px;
        position: relative;
        border-bottom: 1px solid #ddd;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    #compatibilityTable td:before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.9em;
        color: #333;
        text-align: left;
        flex: 1;
        /* Makes sure the label stays on the left */
    }

    #compatibilityTable td span {
        flex: 2;
        text-align: right;
        /* Ensures content is right-aligned */
    }

    #compatibilityTable tr.hidden {
        display: none !important;
    }

    .container {
        width: 95%;
    }

    .hero h1 {
        font-size: 1.8em;
        padding: 15px;
    }

    .hero p {
        font-size: 1.5em;
        margin-bottom: 30px;
        padding: 15px;
    }

    .here-content h1 {
        padding: 20px; /* Increased padding for better gesture navigation */
        margin: 20px auto; /* Increased margin for better spacing */;
      }

    .operator-logos {
        flex-direction: column;
    }

    .operator-logo {
        margin: 10px 0;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        flex-basis: auto;
        width: 80%;
    }

    /* #use-table-container {
        width: 90%;
        margin: 20px auto;  
        display: flex;
        flex-direction: column;
        align-items: center;  /
    } */

    #user-table-container {
        width: 90%;
        max-height: 400px;
        margin: 20px auto;
        /* Adjust height as needed */
        overflow-y: auto;
        /* Enables vertical scrolling */
        overflow-x: hidden;
        /* Prevents horizontal scrolling */
        display: flex;
        flex-direction: column;
    }

    #userDeviceTable {
        width: 100%;
        /* border: 1px solid black; */
        border-collapse: collapse;
        border-spacing: 2px;
    }

    #userDeviceTable thead {
        display: none;
    }

    #userDeviceTable tr {
        display: flex;
        flex-wrap: wrap;
        width: 97%;
        border: 1px solid #ddd;
        margin-bottom: 15px;
        margin-right: 5px;
        border-radius: 10px;
    }

    #userDeviceTable td:before {
        content: attr(data-label);
        display: inline-block;
        min-width: 120px;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.9em;
        color: #333;
        text-align: left;
    }

    #userDeviceTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid #ddd;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        box-sizing: border-box;
    }

    #userDeviceTable thead {
        position: sticky;
        top: 0;
        background-color: #009ed8;
        /* Keeps header visible */
        z-index: 2;
    }

    #userDeviceTable tr:last-child td {
        border-bottom: none;
        /* Removes extra border on last row */
    }

    #userDeviceTable tr.hidden {
        display: none !important;
    }

    .info-benefits li:before {
        content: "" !important;
        /* Forces the checkmark */
        color: #009ed8 !important;
        /* Ensures correct color */
        font-size: 1.2em !important;
        font-weight: bold !important;
        flex-shrink: 0;
        display: inline-block !important;
        /* Ensures it stays visible */
        margin-right: 8px;
        /* Creates proper spacing */
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin-top: 10px;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links li {
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar .nav-links a {
        display: block;
        padding: 10px;
    }

    .modal-content {
        margin: 4% auto;
        padding: 2.5rem 1rem 1rem 1rem;
        width: 95%;
        left: 50%;
        transform: translateX(-50%);
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-form {
        padding: 0.8rem;
        gap: 0.8rem;
        margin: 0 auto;  /* Center the form */
        width: 90%;       /* Reduced from 1rem */
    }

    .form-group {
        gap: 0.3rem;     /* Reduced from 0.5rem */
    }

    .form-check-checkboxes {
        gap: 1rem;       /* Reduced from 1.5rem */
        margin: 0.3rem 0; /* Reduced from 0.5rem */
    }

    .form-select {
        padding: 0.4rem; /* Reduced from 0.5rem */
    }

    #btn-group {
        gap: 10px;      /* Reduced from 20px */
    }

    .submitBtn, .resetBtn {
        padding: 8px 16px; /* Reduced from 10px 20px */
        margin: 0 5px;     /* Reduced from 0 10px */
    }

    .close {
        top: 0.1rem;    /* Increased from 0.1rem */
        font-size: 1.5rem;  /* Slightly larger close button */
    }

    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}