/* ===== INSTANT QUOTE TOOL - ENHANCED UI WITH IMPROVED MOBILE RESPONSIVENESS ===== */

/* Main Container */
.iqt-wrap {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e6e3;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Layout Grid */
.iqt-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: flex-end;
}

.iqt-col {
    flex: 1 1 280px;
    min-width: 200px;
}

/* Labels */
.iqt-wrap label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Form Inputs - Enhanced Styling */
.iqt-wrap input[type="text"],
.iqt-wrap input[type="email"],
.iqt-wrap input[type="tel"],
.iqt-wrap input[type="number"],
.iqt-wrap input[type="date"],
.iqt-wrap select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8e4;
    border-radius: 8px;
    font-size: 15px;
    color: #000000 !important; /* Force black text */
    background-color: #ffffff !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

/* Additional specificity for input text values */
.iqt-wrap input[type="text"]:not(:placeholder-shown),
.iqt-wrap input[type="email"]:not(:placeholder-shown),
.iqt-wrap input[type="tel"]:not(:placeholder-shown),
.iqt-wrap input[type="number"]:not(:placeholder-shown) {
    color: #000000 !important;
}

/* Force black text for all input states */
.iqt-wrap input {
    color: #000000 !important;
}

/* Ensure select options are also black */
.iqt-wrap select option {
    color: #000000 !important;
    background-color: #ffffff !important;
}

.iqt-wrap input[type="text"]:focus,
.iqt-wrap input[type="email"]:focus,
.iqt-wrap input[type="tel"]:focus,
.iqt-wrap input[type="number"]:focus,
.iqt-wrap input[type="date"]:focus,
.iqt-wrap select:focus {
    outline: none;
    border-color: #8faaa5;
    box-shadow: 0 0 0 3px rgba(143, 170, 165, 0.15);
    background-color: #fafbfb;
}

/* Placeholder Styling */
.iqt-wrap input::placeholder {
    color: #6c7b7f !important;
    opacity: 1;
}

.iqt-wrap input::-webkit-input-placeholder {
    color: #6c7b7f !important;
}

.iqt-wrap input::-moz-placeholder {
    color: #6c7b7f !important;
    opacity: 1;
}

.iqt-wrap input:-ms-input-placeholder {
    color: #6c7b7f !important;
}

/* Select Dropdown Enhancements */
.iqt-wrap select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238faaa5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Range Sliders - Custom Styling with #8faaa5 */
.iqt-slider {
    margin: 10px 0;
}

.iqt-slider label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.iqt-slider span {
    background: #8faaa5;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    font-size: 13px;
}

/* Range Input Styling */
.iqt-wrap input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #e8f0ee;
    border-radius: 8px;
    outline: none;
    margin: 10px 0;
    cursor: pointer;
}

/* Range Track */
.iqt-wrap input[type="range"]::-webkit-slider-track {
    width: 100%;
    height: 8px;
    background: #e8f0ee;
    border-radius: 8px;
}

/* Range Thumb - WebKit */
.iqt-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #8faaa5;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(143, 170, 165, 0.3);
    transition: all 0.2s ease;
}

.iqt-wrap input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(143, 170, 165, 0.4);
}

/* Range Thumb - Mozilla */
.iqt-wrap input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #8faaa5;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(143, 170, 165, 0.3);
    transition: all 0.2s ease;
}

.iqt-wrap input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(143, 170, 165, 0.4);
}

/* Range Track - Mozilla */
.iqt-wrap input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #e8f0ee;
    border-radius: 8px;
    border: none;
}

/* Section Headers */
.iqt-steps {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f5f3;
}

.iqt-steps h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 15px;
}

.iqt-steps h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #8faaa5;
    border-radius: 2px;
}

/* Add-ons Section */
.iqt-addons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.iqt-addons label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 15px;
    background: #f8faf9;
    border: 2px solid #e8f0ee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.iqt-addons label:hover {
    background: #f0f5f3;
    border-color: #8faaa5;
}

.iqt-addons input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8faaa5;
    cursor: pointer;
}

/* Price Display */
.iqt-price {
    background: linear-gradient(135deg, #8faaa5 0%, #7a9590 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    margin: 20px 0 15px 0;
    box-shadow: 0 4px 15px rgba(143, 170, 165, 0.3);
    letter-spacing: 0.5px;
}

/* Terms Link */
.iqt-terms-link {
    text-align: center;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#iqt-show-terms {
    color: #8faaa5 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#iqt-show-terms:hover {
    color: #7a9590 !important;
    text-decoration: none !important;
}

/* Payment Button */
#iqt-pay {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #8faaa5 0%, #7a9590 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(143, 170, 165, 0.3);
}

#iqt-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 170, 165, 0.4);
    background: linear-gradient(135deg, #7a9590 0%, #6b8580 100%);
}

#iqt-pay:active {
    transform: translateY(0);
}

#iqt-pay:disabled {
    background: #bcc5c2;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Hidden Elements */
.iqt-hidden {
    display: none !important;
}

/* ===== IMPROVED RESPONSIVE DESIGN ===== */

/* Large Desktops and Laptops - 1200px and above */
@media (min-width: 1200px) {
    .iqt-wrap {
        max-width: 1000px;
        padding: 35px;
    }
    
    .iqt-row {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .iqt-col {
        flex: 1 1 320px;
    }
    
    .iqt-addons {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 15px;
    }
}

/* Standard Laptops - 1024px to 1199px */
@media (max-width: 1199px) and (min-width: 1024px) {
    .iqt-wrap {
        max-width: 95%;
        margin: 15px auto;
        padding: 30px;
    }
    
    .iqt-row {
        gap: 18px;
        margin-bottom: 18px;
    }
    
    .iqt-col {
        flex: 1 1 280px;
        min-width: 200px;
    }
    
    .iqt-addons {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
}

/* iPad Pro and Large Tablets - 768px to 1023px */
@media (max-width: 1023px) and (min-width: 768px) {
    .iqt-wrap {
        max-width: 90%;
        margin: 12px auto;
        padding: 25px;
    }
    
    .iqt-row {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .iqt-col {
        flex: 1 1 220px;
        min-width: 180px;
    }
    
    .iqt-wrap label {
        margin-bottom: 5px;
        font-size: 13px;
    }
    
    .iqt-wrap input[type="text"],
    .iqt-wrap input[type="email"],
    .iqt-wrap input[type="tel"],
    .iqt-wrap input[type="number"],
    .iqt-wrap input[type="date"],
    .iqt-wrap select {
        padding: 11px 15px;
        font-size: 14px;
    }
    
    .iqt-slider {
        margin: 8px 0;
    }
    
    .iqt-slider label {
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .iqt-steps {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .iqt-steps h3 {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .iqt-addons {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
    }
    
    .iqt-addons label {
        padding: 13px;
        font-size: 13px;
    }
    
    .iqt-price {
        font-size: 17px;
        padding: 18px 22px;
        margin: 15px 0 12px 0;
    }
}

/* iPad Mini and Small Tablets - 481px to 767px */
@media (max-width: 767px) and (min-width: 481px) {
    .iqt-wrap {
        margin: 8px;
        padding: 18px;
        border-radius: 10px;
    }
    
    .iqt-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 8px;
        align-items: stretch;
    }
    
    .iqt-col {
        flex: 1 1 auto;
        min-width: auto;
        width: 100%;
    }
    
    .iqt-wrap label {
        margin-bottom: 4px;
        font-size: 13px;
    }
    
    .iqt-wrap input[type="text"],
    .iqt-wrap input[type="email"],
    .iqt-wrap input[type="tel"],
    .iqt-wrap input[type="number"],
    .iqt-wrap input[type="date"],
    .iqt-wrap select {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 7px;
    }
    
    .iqt-slider {
        margin: 6px 0;
    }
    
    .iqt-slider label {
        margin-bottom: 5px;
        font-size: 12px;
    }
    
    .iqt-slider span {
        padding: 3px 10px;
        font-size: 11px;
        min-width: 28px;
    }
    
    .iqt-steps {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .iqt-steps h3 {
        font-size: 16px;
        margin-bottom: 10px;
        padding-left: 12px;
    }
    
    .iqt-steps h3::before {
        width: 3px;
        height: 18px;
    }
    
    .iqt-addons {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }
    
    .iqt-addons label {
        padding: 11px;
        gap: 10px;
        font-size: 13px;
        border-radius: 7px;
    }
    
    .iqt-addons input[type="checkbox"] {
        width: 17px;
        height: 17px;
    }
    
    .iqt-price {
        font-size: 16px;
        padding: 16px 20px;
        margin: 12px 0 10px 0;
        border-radius: 9px;
    }
    
    .iqt-terms-link {
        margin: 10px 0;
        gap: 6px;
        flex-direction: row;
    }
    
    #iqt-show-terms {
        font-size: 13px;
    }
    
    #iqt-pay {
        padding: 15px 28px;
        font-size: 15px;
        border-radius: 9px;
        letter-spacing: 0.8px;
    }
}

/* Large Mobile Phones - 376px to 480px */
@media (max-width: 480px) and (min-width: 376px) {
    .iqt-wrap {
        margin: 5px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .iqt-row {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 6px;
        align-items: stretch;
    }
    
    .iqt-col {
        width: 100%;
    }
    
    .iqt-wrap label {
        margin-bottom: 3px;
        font-size: 12px;
    }
    
    .iqt-wrap input[type="text"],
    .iqt-wrap input[type="email"],
    .iqt-wrap input[type="tel"],
    .iqt-wrap input[type="number"],
    .iqt-wrap input[type="date"],
    .iqt-wrap select {
        padding: 9px 13px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .iqt-slider {
        margin: 5px 0;
    }
    
    .iqt-slider label {
        margin-bottom: 4px;
        font-size: 12px;
    }
    
    .iqt-slider span {
        padding: 2px 8px;
        font-size: 11px;
        min-width: 25px;
    }
    
    .iqt-steps {
        margin-top: 12px;
        padding-top: 10px;
    }
    
    .iqt-steps h3 {
        font-size: 15px;
        margin-bottom: 8px;
        padding-left: 10px;
    }
    
    .iqt-steps h3::before {
        width: 3px;
        height: 15px;
    }
    
    .iqt-addons {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 8px;
    }
    
    .iqt-addons label {
        padding: 10px;
        gap: 8px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .iqt-addons input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    .iqt-price {
        font-size: 15px;
        padding: 14px 18px;
        margin: 10px 0 8px 0;
        border-radius: 8px;
        line-height: 1.3;
    }
    
    .iqt-terms-link {
        margin: 8px 0;
        gap: 5px;
        flex-direction: column;
        text-align: center;
    }
    
    #iqt-show-terms {
        font-size: 12px;
    }
    
    #iqt-pay {
        padding: 13px 24px;
        font-size: 14px;
        border-radius: 8px;
        letter-spacing: 0.6px;
    }
}

/* Small Mobile Phones - 321px to 375px */
@media (max-width: 375px) and (min-width: 321px) {
    .iqt-wrap {
        margin: 3px;
        padding: 12px;
        border-radius: 6px;
    }
    
    .iqt-row {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 4px;
        align-items: stretch;
    }
    
    .iqt-col {
        width: 100%;
    }
    
    .iqt-wrap label {
        margin-bottom: 2px;
        font-size: 12px;
    }
    
    .iqt-wrap input[type="text"],
    .iqt-wrap input[type="email"],
    .iqt-wrap input[type="tel"],
    .iqt-wrap input[type="number"],
    .iqt-wrap input[type="date"],
    .iqt-wrap select {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 5px;
    }
    
    .iqt-slider {
        margin: 4px 0;
    }
    
    .iqt-slider label {
        margin-bottom: 3px;
        font-size: 11px;
    }
    
    .iqt-slider span {
        padding: 2px 7px;
        font-size: 10px;
        min-width: 22px;
    }
    
    .iqt-steps {
        margin-top: 10px;
        padding-top: 8px;
    }
    
    .iqt-steps h3 {
        font-size: 14px;
        margin-bottom: 6px;
        padding-left: 8px;
    }
    
    .iqt-steps h3::before {
        width: 2px;
        height: 12px;
    }
    
    .iqt-addons {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 6px;
    }
    
    .iqt-addons label {
        padding: 8px;
        gap: 6px;
        font-size: 11px;
        border-radius: 5px;
    }
    
    .iqt-addons input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }
    
    .iqt-price {
        font-size: 14px;
        padding: 12px 16px;
        margin: 8px 0 6px 0;
        border-radius: 6px;
        line-height: 1.2;
    }
    
    .iqt-terms-link {
        margin: 6px 0;
        gap: 4px;
        flex-direction: column;
        text-align: center;
    }
    
    #iqt-show-terms {
        font-size: 11px;
    }
    
    #iqt-pay {
        padding: 12px 22px;
        font-size: 13px;
        border-radius: 6px;
        letter-spacing: 0.4px;
    }
}

/* Extra Small Mobile Phones - 320px and below */
@media (max-width: 320px) {
    .iqt-wrap {
        margin: 2px;
        padding: 10px;
        border-radius: 5px;
    }
    
    .iqt-row {
        flex-direction: column;
        gap: 3px;
        margin-bottom: 3px;
        align-items: stretch;
    }
    
    .iqt-col {
        width: 100%;
    }
    
    .iqt-wrap label {
        margin-bottom: 2px;
        font-size: 11px;
    }
    
    .iqt-wrap input[type="text"],
    .iqt-wrap input[type="email"],
    .iqt-wrap input[type="tel"],
    .iqt-wrap input[type="number"],
    .iqt-wrap input[type="date"],
    .iqt-wrap select {
        padding: 7px 10px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    .iqt-slider {
        margin: 3px 0;
    }
    
    .iqt-slider label {
        margin-bottom: 2px;
        font-size: 10px;
    }
    
    .iqt-slider span {
        padding: 1px 6px;
        font-size: 9px;
        min-width: 20px;
    }
    
    .iqt-steps {
        margin-top: 8px;
        padding-top: 6px;
    }
    
    .iqt-steps h3 {
        font-size: 13px;
        margin-bottom: 4px;
        padding-left: 6px;
    }
    
    .iqt-steps h3::before {
        width: 2px;
        height: 10px;
    }
    
    .iqt-addons {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-top: 4px;
    }
    
    .iqt-addons label {
        padding: 6px;
        gap: 5px;
        font-size: 10px;
        border-radius: 4px;
    }
    
    .iqt-addons input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
    
    .iqt-price {
        font-size: 13px;
        padding: 10px 14px;
        margin: 6px 0 4px 0;
        border-radius: 5px;
        line-height: 1.1;
    }
    
    .iqt-terms-link {
        margin: 4px 0;
        gap: 3px;
        flex-direction: column;
        text-align: center;
    }
    
    #iqt-show-terms {
        font-size: 10px;
    }
    
    #iqt-pay {
        padding: 10px 18px;
        font-size: 12px;
        border-radius: 5px;
        letter-spacing: 0.2px;
    }
}

/* ===== TERMS MODAL STYLING WITH MOBILE IMPROVEMENTS ===== */
#iqt-terms-modal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2147483647 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

#iqt-terms-modal.iqt-open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#iqt-terms-modal .iqt-modal-container {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    transition: transform 0.25s ease;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

#iqt-terms-modal.iqt-open .iqt-modal-container {
    transform: translate(-50%, -50%) scale(1);
}

.iqt-modal-header {
    background: #2a2a2a;
    color: #c9a876;
    padding: 24px 30px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #404040;
}

.iqt-modal-title {
    font-family: Arial, sans-serif;
    font-size: 36px;
    font-weight: 300;
    margin: 0;
    letter-spacing: 1px;
    color: #c9a876;
}

.iqt-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.iqt-modal-close:hover {
    color: #c9a876;
}

.iqt-modal-content {
    background: #2a2a2a;
    color: #fff;
    padding: 25px 30px;
    max-height: 60vh;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.iqt-modal-content::-webkit-scrollbar {
    width: 8px;
}

.iqt-modal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.iqt-modal-content::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

.iqt-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.iqt-terms-text {
    font-size: 15px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.iqt-terms-text strong {
    color: #ccc9ba;
}

.iqt-modal-footer {
    background: #1a1a1a;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #404040;
}

.iqt-brand-name {
    font-size: 28px;
    color: #ccc9ba;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.iqt-contact-info-modal {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #aaa;
    font-size: 14px;
}

.iqt-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.iqt-contact-icon {
    font-size: 16px;
    color: #c9a876;
}

/* ===== MODAL RESPONSIVE DESIGN ===== */

/* Large Desktops */
@media (min-width: 1200px) {
    #iqt-terms-modal .iqt-modal-container {
        max-width: 700px;
        width: 85%;
    }
    
    .iqt-modal-title {
        font-size: 40px;
    }
    
    .iqt-modal-content {
        padding: 30px 35px;
        max-height: 65vh;
        font-size: 16px;
    }
    
    .iqt-brand-name {
        font-size: 32px;
    }
    
    .iqt-contact-info-modal {
        font-size: 15px;
        gap: 35px;
    }
}

/* Standard Laptops */
@media (max-width: 1199px) and (min-width: 1024px) {
    #iqt-terms-modal .iqt-modal-container {
        max-width: 650px;
        width: 88%;
    }
    
    .iqt-modal-title {
        font-size: 38px;
    }
    
    .iqt-modal-content {
        padding: 28px 32px;
        max-height: 62vh;
    }
    
    .iqt-brand-name {
        font-size: 30px;
    }
}

/* iPad Pro and Large Tablets */
@media (max-width: 1023px) and (min-width: 768px) {
    #iqt-terms-modal .iqt-modal-container {
        width: 92%;
        max-height: 88vh;
        border-radius: 10px;
    }
    
    .iqt-modal-title {
        font-size: 32px;
    }
    
    .iqt-modal-header {
        padding: 20px 25px 16px;
    }
    
    .iqt-modal-close {
        top: 16px;
        right: 20px;
        font-size: 26px;
        width: 28px;
        height: 28px;
    }
    
    .iqt-modal-content {
        padding: 22px 25px;
        max-height: 58vh;
        font-size: 14px;
    }
    
    .iqt-modal-footer {
        padding: 18px 25px;
    }
    
    .iqt-brand-name {
        font-size: 26px;
        margin-bottom: 14px;
    }
    
    .iqt-contact-info-modal {
        gap: 25px;
        font-size: 13px;
    }
    
    .iqt-terms-text {
        font-size: 14px;
        margin-bottom: 18px;
    }
}

/* iPad Mini and Small Tablets */
@media (max-width: 767px) and (min-width: 481px) {
    #iqt-terms-modal .iqt-modal-container {
        width: 95%;
        max-height: 85vh;
        border-radius: 8px;
    }
    
    .iqt-modal-title {
        font-size: 28px;
    }
    
    .iqt-modal-header {
        padding: 18px 20px 14px;
    }
    
    .iqt-modal-close {
        top: 14px;
        right: 18px;
        font-size: 24px;
        width: 26px;
        height: 26px;
    }
    
    .iqt-modal-content {
        padding: 20px 22px;
        max-height: 55vh;
        font-size: 13px;
        line-height: 1.5;
    }
    
    .iqt-modal-footer {
        padding: 16px 20px;
    }
    
    .iqt-brand-name {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .iqt-contact-info-modal {
        flex-direction: column;
        gap: 14px;
        font-size: 12px;
    }
    
    .iqt-terms-text {
        font-size: 13px;
        margin-bottom: 16px;
    }
}

/* Large Mobile Phones */
@media (max-width: 480px) and (min-width: 376px) {
    #iqt-terms-modal .iqt-modal-container {
        width: 96%;
        max-height: 90vh;
        margin: 2%;
        border-radius: 6px;
    }
    
    .iqt-modal-title {
        font-size: 22px;
    }
    
    .iqt-modal-header {
        padding: 16px 18px 12px;
    }
    
    .iqt-modal-close {
        top: 12px;
        right: 16px;
        font-size: 22px;
        width: 24px;
        height: 24px;
    }
    
    .iqt-modal-content {
        padding: 18px 20px;
        max-height: 60vh;
        font-size: 12px;
        line-height: 1.4;
    }
    
    .iqt-modal-footer {
        padding: 14px 18px;
    }
    
    .iqt-brand-name {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .iqt-contact-info-modal {
        flex-direction: column;
        gap: 12px;
        font-size: 11px;
    }
    
    .iqt-contact-icon {
        font-size: 14px;
    }
    
    .iqt-terms-text {
        font-size: 12px;
        margin-bottom: 14px;
    }
}

/* Small Mobile Phones */
@media (max-width: 375px) and (min-width: 321px) {
    #iqt-terms-modal .iqt-modal-container {
        width: 98%;
        max-height: 92vh;
        margin: 1%;
        border-radius: 5px;
    }
    
    .iqt-modal-title {
        font-size: 18px;
    }
    
    .iqt-modal-header {
        padding: 14px 16px 10px;
    }
    
    .iqt-modal-close {
        top: 10px;
        right: 14px;
        font-size: 20px;
        width: 22px;
        height: 22px;
    }
    
    .iqt-modal-content {
        padding: 16px 18px;
        max-height: 62vh;
        font-size: 11px;
        line-height: 1.3;
    }
    
    .iqt-modal-footer {
        padding: 12px 16px;
    }
    
    .iqt-brand-name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .iqt-contact-info-modal {
        flex-direction: column;
        gap: 10px;
        font-size: 10px;
    }
    
    .iqt-contact-icon {
        font-size: 12px;
    }
    
    .iqt-terms-text {
        font-size: 11px;
        margin-bottom: 12px;
    }
}

/* Extra Small Mobile Phones */
@media (max-width: 320px) {
    #iqt-terms-modal .iqt-modal-container {
        width: 99%;
        max-height: 94vh;
        margin: 0.5%;
        border-radius: 4px;
    }
    
    .iqt-modal-title {
        font-size: 16px;
    }
    
    .iqt-modal-header {
        padding: 12px 14px 8px;
    }
    
    .iqt-modal-close {
        top: 8px;
        right: 12px;
        font-size: 18px;
        width: 20px;
        height: 20px;
    }
    
    .iqt-modal-content {
        padding: 14px 16px;
        max-height: 64vh;
        font-size: 10px;
        line-height: 1.2;
    }
    
    .iqt-modal-footer {
        padding: 10px 14px;
    }
    
    .iqt-brand-name {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .iqt-contact-info-modal {
        flex-direction: column;
        gap: 8px;
        font-size: 9px;
    }
    
    .iqt-contact-icon {
        font-size: 10px;
    }
    
    .iqt-terms-text {
        font-size: 10px;
        margin-bottom: 10px;
    }
}