/**
 * Popup Contact Form Styles
 * Secure contact form styling with validation states
 * Theme: Professional Light (matching index.php)
 * Namespaced to avoid conflicts: vyom-*
 * Design: Wide & compact - no scrollbar at any screen/zoom level
 */

/* Popup Overlay */
.vyom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

/* Ensure all child elements use border-box to prevent sizing issues */
.vyom-popup-overlay * {
    box-sizing: border-box;
}

.vyom-popup-overlay.vyom-popup-active {
    display: flex;
    animation: vyomFadeIn 0.3s ease;
}

/* Base Container - WIDER to reduce height */
.vyom-popup-container {
    background-color: #ffffff;
    border: 1px solid rgba(0, 105, 255, 0.1);
    width: clamp(320px, 92vw, 640px);
    max-width: 96%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(11, 27, 75, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
    line-height: 1.4;
    animation: vyomSlideUp 0.3s ease;
    max-height: 96vh;
}

/* Popup Header - Compact */
.vyom-popup-header {
    padding: 10px 16px;
    background: linear-gradient(135deg, #0069ff 0%, #0052cc 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    flex-shrink: 0;
    gap: 10px;
}

.vyom-popup-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.vyom-popup-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}

.vyom-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.vyom-popup-close:active {
    transform: rotate(90deg) scale(0.95);
}

.vyom-popup-close::before,
.vyom-popup-close::after {
    content: none;
    display: none;
}

/* Popup Body - Compact padding, overflow hidden by default (no scrollbar) */
.vyom-popup-body {
    padding: 14px 16px 10px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar - thin if ever needed */
.vyom-popup-body::-webkit-scrollbar {
    width: 4px;
}

.vyom-popup-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.vyom-popup-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.vyom-popup-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox Scrollbar */
.vyom-popup-body {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Prevent body scroll when popup is active */
body.vyom-popup-no-scroll {
    overflow: hidden !important;
}

/* ============================================
   2-COLUMN ROW LAYOUT (Name + Email side by side)
   ============================================ */
.vyom-popup-body .vyom-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.vyom-popup-body .vyom-form-row>.vyom-form-group {
    flex: 1;
    min-width: 0;
}

/* Form Groups - Tight spacing */
.vyom-popup-body .vyom-form-group {
    margin-bottom: 18px;
}

/* Specific class for reCAPTCHA centering */
.vyom-popup-body .vyom-recaptcha-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.vyom-popup-body label {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
    color: #0b1b4b;
    font-size: 0.82rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.vyom-popup-body .vyom-required {
    color: #ef4444;
}

/* Input Wrapper for Error Positioning */
.vyom-popup-body .vyom-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Form Controls - Compact height */
.vyom-popup-body .vyom-form-control {
    display: block;
    width: 100%;
    padding: 8px 10px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0b1b4b;
    transition: all 0.2s ease;
    height: auto;
    min-height: 38px;
}

.vyom-popup-body .vyom-form-control:focus {
    outline: none;
    border-color: #0069ff;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 105, 255, 0.1);
}

/* Textarea - Compact */
.vyom-popup-body textarea.vyom-form-control {
    resize: vertical;
    min-height: 56px;
    max-height: 100px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Placeholder Styling */
.vyom-popup-body .vyom-form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* Success State */
.vyom-popup-body .vyom-form-control.success {
    border-color: #10b981;
    background-color: #f8fafc;
}

/* Error State */
.vyom-popup-body .vyom-form-control.error {
    border-color: #ef4444;
    background-color: #f8fafc;
}

.vyom-popup-body .vyom-form-control.error:focus {
    background-color: #ffffff;
}

/* Error Messages - polished compact style */
.vyom-popup-body .vyom-error-message {
    display: none;
    color: #dc2626;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.2;
    z-index: 10;
    pointer-events: none;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    /* Removed text-overflow ellipsis and line-clamp to show full warning below input */
}

/* Field-level errors: float at top-right of each input without changing form height */
.vyom-popup-body .vyom-input-wrapper .vyom-error-message {
    position: absolute;
    /* Position relative to input wrapper bottom boundary */
    top: auto;
    bottom: 100%;
    right: 0;
    left: auto;
    width: auto;
    max-width: 70%;
    /* increased to 70% to allow more text */
 
    /* Truncation - Single line only with ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-align: right;
    /* Dynamic spacing/sizing */
    padding: 0;
    margin-bottom: 3px;
    /* Matches label margin-bottom */
    font-size: clamp(0.6rem, 1.5vw, 0.72rem);
    line-height: 1.1;

    border-radius: 0;
    background: transparent;
    pointer-events: none;
    margin-top: 0;
}

/* Non-input errors (like reCAPTCHA) stay in normal flow */
.vyom-popup-body .vyom-form-group>.vyom-error-message {
    position: static;
    max-width: 100%;
    overflow: hidden;
    text-align: left;
    margin-top: 4px;
}

.vyom-popup-body .vyom-error-message::before {
    content: '\26A0 ';
    font-weight: 700;
    margin-right: 2px;
}

.vyom-popup-body .vyom-error-message-box {
    display: none;
    background-color: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 6px;
    padding: 8px;
    color: #dc2626;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.4;
}

.vyom-popup-body .vyom-error-message-box::before {
    content: '\26A0 ';
    font-weight: 700;
    margin-right: 4px;
}

/* Character Counter */
.vyom-popup-body .vyom-char-counter {
    text-align: right;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

/* reCAPTCHA Container - Compact */
.vyom-popup-body .g-recaptcha {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    margin-top: 4px;
    transform: scale(1);
    transform-origin: center top;
    width: 304px;
    /* Fixed width of reCAPTCHA */
    max-width: 100%;
    min-height: 78px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

/* Prevent overflow on small screens */
.vyom-popup-body .g-recaptcha>div {
    margin: 0 auto;
}

/* Ensure reCAPTCHA iframe scales properly */
.vyom-popup-body .g-recaptcha iframe {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Submit Button - Compact */
.vyom-popup-body .vyom-btn-submit {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #0069ff 0%, #0052cc 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 105, 255, 0.25);
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 42px;
}

.vyom-popup-body .vyom-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 105, 255, 0.35);
}

.vyom-popup-body .vyom-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 105, 255, 0.25);
}

.vyom-popup-body .vyom-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Overlay */
.vyom-popup-body .vyom-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.94);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 0 0 10px 10px;
    backdrop-filter: blur(2px);
}

.vyom-popup-body .vyom-loading-overlay.vyom-loading-active {
    display: flex;
    animation: vyomFadeIn 0.2s ease;
}

.vyom-popup-body .vyom-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e2e8f0;
    border-top-color: #0069ff;
    border-radius: 50%;
    animation: vyomSpin 0.75s linear infinite;
}

@keyframes vyomSpin {
    to { transform: rotate(360deg); }
}

.vyom-popup-body .vyom-loading-text {
    margin: 14px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0b1b4b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Success Panel (replaces form after successful submit) */
.vyom-popup-body .vyom-success-panel {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: vyomFadeIn 0.35s ease;
}

.vyom-popup-body .vyom-success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    animation: vyomSuccessPulse 0.6s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.vyom-popup-body .vyom-success-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b1b4b;
    margin: 0 0 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.vyom-popup-body .vyom-success-desc {
    font-size: 0.88rem;
    color: #475569;
    margin: 0 0 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.55;
    max-width: 320px;
}

.vyom-popup-body .vyom-btn-close-success {
    background: linear-gradient(135deg, #0069ff 0%, #0052cc 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 105, 255, 0.25);
}

.vyom-popup-body .vyom-btn-close-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 105, 255, 0.35);
}

.vyom-popup-body .vyom-btn-close-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 105, 255, 0.25);
}

/* Animations */
@keyframes vyomFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes vyomSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes vyomSuccessPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* reCAPTCHA scaling for medium-small screens */
/* reCAPTCHA scaling for medium-small screens (updated for better fit) */
@media (max-width: 480px) {
    .vyom-popup-body .g-recaptcha {
        transform: scale(0.77);
        transform-origin: center top;
        margin-bottom: -15px;
        /* Width 100% to fit parent, flex center to align inner content */
        width: 100% !important;
        max-width: none !important;
        display: flex;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .vyom-popup-body .g-recaptcha>div,
    .vyom-popup-body .g-recaptcha iframe {
        /* Inner content stays fixed size */
        width: 304px !important;
        max-width: none !important;
    }
}

@media (max-width: 360px) {
    .vyom-popup-body .g-recaptcha {
        transform: scale(0.70);
        margin-bottom: -20px;
        width: 100% !important;
        max-width: none !important;
        display: flex;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 320px) {
    .vyom-popup-body .g-recaptcha {
        transform: scale(0.65);
        margin-bottom: -25px;
        width: 100% !important;
        max-width: none !important;
        display: flex;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile: Stack the 2-column row */
@media (max-width: 520px) {
    .vyom-popup-body .vyom-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vyom-popup-container {
        width: clamp(280px, 96vw, 100%);
        max-width: 98%;
    }

    .vyom-popup-body .vyom-form-control {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .vyom-popup-body .vyom-error-message {
        font-size: 0.62rem;
    }

    .vyom-popup-body .vyom-input-wrapper .vyom-error-message {
        max-width: min(70%, 12rem);
    }
}

@media (max-width: 760px) {
    .vyom-popup-body .vyom-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .vyom-popup-overlay {
        padding: 6px;
    }

    .vyom-popup-container {
        width: clamp(260px, 98vw, 100%);
    }
}

/* Short screens - even more compact */
@media (max-height: 700px) {
    .vyom-popup-body .vyom-form-group {
        margin-bottom: 7px;
    }

    .vyom-popup-body label {
        margin-bottom: 2px;
        font-size: 0.78rem;
    }

    .vyom-popup-body .vyom-form-control {
        padding: 6px 9px;
        min-height: 34px;
    }

    .vyom-popup-body textarea.vyom-form-control {
        min-height: 46px;
        max-height: 70px;
    }

    .vyom-popup-body .g-recaptcha {
        min-height: 70px;
        margin-bottom: 4px;
        margin-top: 2px;
    }

    .vyom-popup-body .vyom-btn-submit {
        padding: 8px;
        min-height: 36px;
        font-size: 0.88rem;
    }

    .vyom-popup-header {
        padding: 8px 14px;
    }

    .vyom-popup-body {
        padding: 10px 14px 8px;
    }
}

/* Very short height (landscape mobile) */
@media (max-height: 550px) {
    .vyom-popup-overlay {
        padding: 4px;
    }

    .vyom-popup-body .vyom-form-group {
        margin-bottom: 5px;
    }

    .vyom-popup-body label {
        margin-bottom: 1px;
        font-size: 0.74rem;
    }

    .vyom-popup-body .vyom-form-control {
        padding: 5px 8px;
        min-height: 30px;
        font-size: 0.82rem;
    }

    .vyom-popup-body textarea.vyom-form-control {
        min-height: 36px;
        max-height: 56px;
    }

    .vyom-popup-body .g-recaptcha {
        min-height: 65px;
        margin-bottom: 2px;
        margin-top: 0;
        transform: scale(0.85);
    }

    .vyom-popup-body .vyom-btn-submit {
        padding: 6px;
        min-height: 32px;
        font-size: 0.84rem;
    }

    .vyom-popup-header {
        padding: 6px 12px;
    }

    .vyom-popup-title {
        font-size: 0.95rem;
    }

    .vyom-popup-body {
        padding: 8px 12px 6px;
    }

    .vyom-popup-body .vyom-char-counter {
        font-size: 0.65rem;
        margin-top: 1px;
    }
}

/* ============================================
   INTL-TEL-INPUT INTEGRATION
   ============================================ */

/* Container wrapper - ensure it spans full width */
.vyom-popup-body .iti {
    width: 100%;
    display: block;
}

/* Style the phone input - KEY FIX: padding-left to clear country selector */
.vyom-popup-body .iti .iti__tel-input {
    display: block;
    width: 100%;
    padding-top: 8px;
    padding-right: 10px;
    padding-bottom: 8px;
    padding-left: 110px !important;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0b1b4b;
    transition: all 0.2s ease;
    height: auto;
    min-height: 38px;
    box-sizing: border-box;
}

.vyom-popup-body .iti .iti__tel-input:focus {
    outline: none;
    border-color: #0069ff;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 105, 255, 0.1);
}

.vyom-popup-body .iti .iti__tel-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* Success/Error states for intl-tel-input */
.vyom-popup-body .iti .iti__tel-input.success {
    border-color: #10b981;
    background-color: #f8fafc;
}

.vyom-popup-body .iti .iti__tel-input.error {
    border-color: #ef4444;
    background-color: #f8fafc;
}

.vyom-popup-body .iti .iti__tel-input.error:focus {
    background-color: #ffffff;
}

/* Country selector button styling */
.vyom-popup-body .iti__country-container {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.vyom-popup-body .iti__selected-country {
    background: transparent;
    border: none;
    border-right: 1.5px solid #e2e8f0;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    height: 100%;
    transition: background 0.2s ease;
    border-radius: 6px 0 0 6px;
}

.vyom-popup-body .iti__selected-country:hover {
    background-color: rgba(0, 105, 255, 0.05);
}

/* Dial code text */
.vyom-popup-body .iti__selected-dial-code {
    font-size: 0.84rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0b1b4b;
    font-weight: 500;
}

/* Dropdown arrow */
.vyom-popup-body .iti__arrow {
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid #64748b;
    margin-left: 4px;
}

.vyom-popup-body .iti__arrow--up {
    border-top: none;
    border-bottom: 4px solid #64748b;
}

/* Country dropdown list */
.iti__dropdown-content {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(11, 27, 75, 0.15);
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000002;
}

/* Search box in dropdown */
.iti__search-input {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1.5px solid #e2e8f0;
    font-size: 0.88rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0b1b4b;
    background-color: #f8fafc;
    outline: none;
    box-sizing: border-box;
}

.iti__search-input:focus {
    background-color: #ffffff;
    border-bottom-color: #0069ff;
}

.iti__search-input::placeholder {
    color: #94a3b8;
}

/* Individual country items */
.iti__country {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.84rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0b1b4b;
}

.iti__country:hover {
    background-color: rgba(0, 105, 255, 0.06);
}

.iti__country.iti__highlight {
    background-color: rgba(0, 105, 255, 0.1);
}

/* Country name and dial code in dropdown */
.iti__country-name {
    flex: 1;
    font-weight: 500;
}

.iti__dial-code {
    color: #64748b;
    font-weight: 400;
}

/* Flag styling */
.iti__flag {
    border-radius: 2px;
}

/* Scrollbar for dropdown - Minimal & Single */
.iti__dropdown-content {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    white-space: nowrap;
    /* Force single scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Hide scrollbar on the country list if it double-scrolls */
.iti__country-list {
    overflow-x: hidden !important;
    /* Often the list itself scrolls too */
    max-height: 220px;
    white-space: nowrap;
}

/* Webkit scrollbar customization - Very minimal */
.iti__dropdown-content::-webkit-scrollbar,
.iti__country-list::-webkit-scrollbar {
    width: 4px;
    /* Thinner */
}

.iti__dropdown-content::-webkit-scrollbar-track,
.iti__country-list::-webkit-scrollbar-track {
    background: transparent;
}

.iti__dropdown-content::-webkit-scrollbar-thumb,
.iti__country-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.iti__dropdown-content::-webkit-scrollbar-thumb:hover,
.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile responsive for intl-tel-input */
@media (max-width: 520px) {
    .vyom-popup-body .iti .iti__tel-input {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .iti__dropdown-content {
        max-height: 180px;
    }
}

@media (max-width: 400px) {
    .vyom-popup-body .iti__selected-dial-code {
        font-size: 0.78rem;
    }

    .iti__dropdown-content {
        max-height: 160px;
    }
}

/* Short screens - compact phone input */
@media (max-height: 700px) {
    .vyom-popup-body .iti .iti__tel-input {
        padding-top: 6px;
        padding-bottom: 6px;
        min-height: 34px;
    }
}

@media (max-height: 550px) {
    .vyom-popup-body .iti .iti__tel-input {
        padding-top: 5px;
        padding-bottom: 5px;
        padding-left: 100px !important;
        min-height: 30px;
        font-size: 0.82rem;
    }
}