/* Base Styles */
.iqf-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 20px;
    line-height: 35px;
      margin-top: 30px;
}

.form-header h2 {
    margin: 0;
    font-size: 24px;
    color: #29a294;
}

.form-header p {
    font-size: 16px;
    color: #666;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 50px !important;

    box-sizing: border-box;
    transition: border-color 0.3s ease;
  font-size: 0.9rem !important;
  height: 45px !important;
}

.form-control:focus {
    border-color: #29a294;
    outline: none;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #29a294;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: rgb(31, 131, 119);
}

/* Conditional Sections */
.conditional-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    grid-column: 1 / -1; /* Span full width */
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.info-icon {
    cursor: pointer;
    color: #29a294;
    font-size: 16px;
}
.nice-select {
    display: none !important;
}
.no-nice-select {
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
}

/* Initially Hide These Sections */
#limited-options,
#llp-options,
#numPartner,
#employees,
#num_enrol {
    display: none;
}

#business_type,
#turnover,
#type_of_service,
#vat,
#payroll {
    display: block !important;
}
/* Error Message */
#iqf-message {
    color: #e74c3c;
    background-color: #fdecea;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.modal.show {
    opacity: 1;
    transform: scale(1);
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80%; /* Prevent modal from being too large */
    overflow-y: auto; /* Allow scroll if content exceeds height */
}

.modal-content h2 {
    color: #29a294;
    margin-bottom: 10px;
}

.modal-content h3 {
    color: #666;
    margin-bottom: 5px;
}

#modal-price-details {
    color: #29a294;
    font-size: 32px;
    margin: 15px 0;
    font-weight: bold;
}

#modal-service-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
}

#modal-service-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

#modal-service-list li:before {
    content: "✔";
    color: #27ae60;
    position: absolute;
    left: 0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Service Package Details */
.service-package {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #29a294;
    border-radius: 0 5px 5px 0;
}

.package-header h4 {
    color: #29a294;
    margin-bottom: 15px;
}

.package-includes {
    margin-left: 20px;
    text-align: left;
}

.package-includes p {
    margin: 8px 0;
    color: #34495e;
    position: relative;
    padding-left: 25px;
}

.package-includes p:before {
    content: "✔";
    color: #27ae60;
    position: absolute;
    left: 0;
}

.package-includes h5 {
    margin: 15px 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-header p {
        font-size: 15px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .modal-content {
        padding: 20px 15px;
        max-height: 90%; /* Allow for more space on mobile */
    }
    
    #modal-price-details {
        font-size: 28px;
    }

    /* Prevent modal content from overflowing on mobile */
    .modal {
        padding: 10px;
    }
}
