* {
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Standard */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body { 
  background: #f8f9fb;
  color: #333;
}

.contact-section {
  padding: 60px 20px;
}


#contactTabs .nav-link {
  font-size: 19px;       /* smaller text */
  padding: 6px 10px;     /* tighter padding */
  white-space: nowrap;   /* keep in one line */
}
.contact-container {
  overflow-x: hidden;
  display: flex;
  gap: 40px;
  max-width: 1400px;
  margin: auto;
  flex-wrap: wrap;
  align-items: center;
}

.contact-info {
  flex: 1 1 500px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  align-content: start; /* Avoid extra vertical stretching */
  margin-bottom: 0;      /* Make sure no space below */
  padding-bottom: 0;     /* Remove any padding if applied */
}

.info-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: left;
  transition: 0.3s;
  height: 100%;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.info-box .icon {
  font-size: 22px;
  color: #6c63ff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #6c63ff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.info-box h4 {
  font-size: 20px;
  margin: 10px 2px;
  color: #000;
}

.info-box p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

.contact-form {
  flex: 1 1 500px;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0c1635;
}

.contact-form p {
  font-size: 14px;
  margin-bottom: 25px;
  color: #555;
}

.contact-form .form-group {
  position: relative;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  transition: border 0.3s;
  background-color: #f9f9f9;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6c63ff;
}

.contact-form .form-group svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.send-btn {
  background: #6c63ff;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.send-btn:hover {
  background: #4c4ae5;
}

.form-group textarea {
  height: 50px;
}

.map-box {
  padding: 40px;
  height: 450px;
  margin: 10px 50px;
}

.map-box iframe {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

 .toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
    }

    .custom-tabs {
            margin: 2rem 0;
        }

        /* Main tab styles */
.nav-tabs {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    justify-content: center;
    gap: 10px;
    border-bottom: none;
    background-color: transparent;
    padding: 10px;
}

.nav-tabs .nav-link {
    color: #001248;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 10px 10px 0 0;
    font-size: 1.1rem;
    padding: 12px 25px;
    background-color: #f0e8e8;
    white-space: nowrap; /* Prevents text from wrapping inside buttons */
    flex: 1 1 auto; /* Allows flexible resizing */
    min-width: max-content; /* Prevents buttons from shrinking too much */
}

.nav-tabs .nav-link:hover {
    color: #519fb3;
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #0bceff, #001248);
    border-color: #0bceff;
    font-weight: 700;
}

/* Optional: Scroll horizontally on extra small screens */
@media (max-width: 576px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .nav-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .nav-tabs .nav-link {
        flex: 0 0 auto;
    }
}


        .tab-content {
            border: 2px solid #dee2e6;
            border-top: none;
            border-radius: 0 0 10px 10px;
            padding: 0;
            background: #fff;
        }

        /* Application Form Styles */
        .application-form {
            padding: 2rem;
            background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
        }

        .form-row {
            display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start; /* Aligns items to the start */
        }
        .form-col-3{
          flex: 1;
    min-width: 0;
    max-width: calc(50% - 0.75rem); /* Fits 4 columns with gap */
        }

        .form-col {
            flex: 1;
    min-width: 0;
    max-width: calc(25% - 0.75rem); /* Fits 4 columns with gap */
        }

        .form-group-app {
            /* position: relative;   */
            margin-bottom: 1.5rem;
    width: 100%; /* Ensures the input takes full width of the column */
        }
        

        .form-group-app input,
        .form-group-app select,
        .form-group-app textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e1e5e9;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #fff;
        }

        .form-group-app input:focus,
        .form-group-app select:focus,
        .form-group-app textarea:focus {
            outline: none;
            border-color: #0bceff;
            box-shadow: 0 0 0 3px rgba(11, 206, 255, 0.1);
        }

        .form-group-app label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #001248;
            font-size: 14px;
        }

        .required {
            color: #e74c3c;
        }

        .disclaimer {
            background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
            border: 2px solid #ffc107;
            border-radius: 10px;
            padding: 1.8rem;
            margin: 2rem 0;
            position: relative;
        }
        .disclaimer img {
            position: absolute;
            top: 25px;
            left: 25px;
            right: 0px;
            width: 30px;
            height: 30px;
        }

        .disclaimer h5 {
            color: #856404;
            font-weight: 700;
            padding-left: 25px;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .disclaimer p {
            color: #856404;
            margin: 0;
            font-weight: 500;
            line-height: 1.6;
        }

        .submit-btn {
            background: #6c63ff;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(11, 206, 255, 0.3);
        }

        #agentCpFields,
#agentCpContactField {
  display: none;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    gap: 15px;
    margin-top: 5px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.radio-group input[type="radio"] {
    display: none; /* Hide default radio button */
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f0e8e8;
    border: 2px solid transparent;
    border-radius: 20px;
    color: #001248;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Default active (blue) */
.radio-group input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #0bceff, #001248);
    color: #fff;
    border-color: #0bceff;
}

/* ✅ YES (green) */
.radio-group input[type="radio"][value="Yes"]:checked + label {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    border-color: #28a745;
}

/* ✅ NO (red) */
.radio-group input[type="radio"][value="No"]:checked + label {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    color: #fff;
    border-color: #dc3545;
}

.radio-group label:hover {
    background-color: #e0e0e0;
}


.document-info-row {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Left (fields) + Right (photo) */
    gap: 20px;
    align-items: start;
}

.document-info-left {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 15px;
}

.document-info-right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-left: 10px;
}
/* Add this more specific CSS to your stylesheet or <style> tag in the <head> */

#director-names-wrapper.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* Adjust the space between fields */
  margin-top: 15px;
}

/* 📱 Mobile view: stack photo below fields */
@media (max-width: 992px) {
    .document-info-row {
        grid-template-columns: 1fr; /* stack */
    }
    .document-info-right {
        margin-left: 0;
        justify-content: flex-start;
    }
}






        @media (max-width: 768px) {
            .form-row {
                flex-direction: column;
                gap: 0;
            }
            .form-col {
        max-width: 100%;
    }

            .nav-tabs .nav-link {
                padding: 10px 20px;
                font-size: 1rem;
            }

            .application-form {
                padding: 1rem;
            }
        }
