
.input-group {
display: flex;
gap: 15px;
margin-bottom: 15px;
align-items: center;
}

.custom-select {
position: relative;
flex: 1;
min-width: 0;
}

#selectTrigger {
border-radius: 8px;
cursor: pointer;
background-color: #fff;
display: flex;
align-items: center;
justify-content: flex-start;
transition: border-color 0.3s ease;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width:115px;
margin-left: -2px;

border: 1px solid #e4e4e4;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  font-size: 14px;
  line-height: 22px;
  border-radius: 80px 0 0 80px;
  padding: 15px 18px;
}

#selectTrigger:hover {
border-color: #4CAF50;
}

#selectTrigger .placeholder {
color: #888;
}


.custom-select2 {
    position: relative;
    flex: 1;
    min-width: 0;
    }
    
#selectTrigger2 {
    border-radius: 8px;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: border-color 0.3s ease;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width:115px;
    margin-left: -2px;
    
    border: 1px solid #e4e4e4;
      -webkit-box-shadow: none;
      -moz-box-shadow: none;
      box-shadow: none;
      font-size: 14px;
      line-height: 22px;
      border-radius: 80px 0 0 80px;
      padding: 15px 18px;
}
    
#selectTrigger2:hover {
    border-color: #4CAF50;
}
    
#selectTrigger2 .placeholder {
    color: #888;
}

.select-items {
position: absolute;
top: 0;
left: 100%; /* Pop out to the right */
border: 2px solid #ddd;
border-radius: 8px;
background-color: #fff;
max-height: 400px;
overflow-y: auto;
display: none;
z-index: 1000;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
width: 360px; /* Fixed width for pop-out */
min-width: 250px; /* Minimum width to ensure readability */
margin-left: -110px; /* Small gap from the trigger */
margin-top: -160px;
}

.select-items div {
padding: 10px 15px;
cursor: pointer;
display: flex;
align-items: center;
transition: background-color 0.3s ease;
white-space: nowrap; /* Prevent wrapping within items */
overflow: hidden; /* Hide overflow if any */
text-overflow: ellipsis; /* Add ellipsis if text exceeds */
}

.select-items div:hover {
background-color: #f5f5f5;
}

.flag-img {
width: 20px;
height: 15px;
margin-right: 10px;
}

.phone-input {
flex: 2;
padding: 12px;
border: 2px solid #ddd;
border-radius: 8px;
font-size: 1em;
transition: border-color 0.3s ease;
min-width: 0;
}

.phone-input:focus {
border-color: #4CAF50;
outline: none;
}


.menu {
    font-family: Arial, sans-serif;
    width: 300px;
}
.menu-item {
    padding: 10px;
    cursor: pointer;
    /* border-bottom: 1px solid #ccc; */
}

.submenu {
    display: none;
    padding-left: 20px;
}
.submenu.active {
    display: block;
}
.arrow {
    float: right;
    transition: transform 0.3s;
}
.arrow.expanded {
    transform: rotate(180deg);
}



.header-form {
    background: #112152;
    color: white;
    padding: 20px;
    text-align: center;
}
.header-form h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.progress-bar {
    display: flex;
    background: #f8f9fa;
    height: 6px;
}
.progress-step {
    flex: 1;
    background: #e9ecef;
    transition: background 0.3s;
}
.progress-step.active { background: #ffd700; }
.progress-step.completed { background: #28a745; }
.form-container {
    padding: 20px;
}
.step {
    display: none;
}
.step.active {
    display: block;
}
.step h2 {
    color: #112152;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 15px;
}
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.radio-option {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.radio-option:hover {
    border-color: #112152;
}
.radio-option input[type="radio"] {
    margin-right: 10px;
}
.radio-option label {
    cursor: pointer;
}
.input-field {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}
.input-field:focus {
    outline: none;
    border-color: #112152;
}
.input-field.error {
    border-color: #dc3545;
}
.phone-input {
    display: flex;
    gap: 10px;
}
.country-code {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    min-width: 100px;
}
textarea {
    min-height: 100px;
    resize: vertical;
}
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn {
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    flex: 1;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background: #5a6268;
}
.btn-success {
    background: #112152;
    color: #1e3a5f;
}
.btn-success:hover {
    background: #112152;
}
.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 8px;
    display: none;
    margin-bottom: 15px;
}
.loading {
    display: none;
    text-align: center;
    padding: 10px;
}
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e3a5f;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
    .container { margin: 10px; }
    .header { padding: 15px; }
    .form-container { padding: 15px; }
    .button-group { flex-direction: column; }
}


.box-grid {
    border: 1px solid #112152;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0; /* Removed the gap between boxes */
}
.box-cell {
    border: 1px solid #112152;
    padding: 20px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.box-cell.selected {
    background-color: #112152;
    color: white;
}
.box-icon {
    font-size: 2em;
    margin-bottom: 10px;
}
.box-text {
    font-size: 1rem;
}