.nitin-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nitin-modal-overlay.active {
    display: flex;
}

.nitin-modal-container {
    width: 400px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: auto;
}

.nitin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nitin-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
}

.nitin-modal-close {
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    line-height: 1;
}

.nitin-modal-close:hover {
    color: #333333;
}

.nitin-modal-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nitin-modal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nitin-modal-label {
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
}

.nitin-modal-input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    background: #F5F5F5;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.nitin-modal-input:focus {
    border-color: #0055AD;
}

.phone-input-group {
    display: flex;
    gap: 8px;
    height: 48px;
}

.country-code-select {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #F5F5F5;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    min-width: 120px;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.country-code-select:focus {
    border-color: #0055AD;
}

.phone-number-input {
    flex: 1;
    height: 48px;
    padding: 12px 16px;
    background: #F5F5F5;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.phone-number-input:focus {
    border-color: #0055AD;
}

.nitin-modal-submit {
    width: 100%;
    height: 48px;
    background: #0055AD;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nitin-modal-submit:hover {
    background: #004080;
}

.nitin-modal-submit:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}

.nitin-modal-note {
    font-size: 12px;
    color: #666666;
    text-align: center;
}

.lm-success-message {
    display: none;
    padding: 12px 16px;
    background: #DFF0D8;
    color: #3C763D;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.lm-error-message {
    display: none;
    padding: 12px 16px;
    background: #F2DEDE;
    color: #A94442;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 480px) {
    .nitin-modal-container {
        width: 95%;
        max-width: none;
        padding: 20px;
        border-radius: 12px;
    }
    
    .nitin-modal-title {
        font-size: 16px;
    }
    
    .nitin-modal-fields {
        gap: 12px;
    }
    
    .nitin-modal-field {
        gap: 6px;
    }
    
    .nitin-modal-label {
        font-size: 13px;
    }
    
    .nitin-modal-input {
        height: 42px;
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .phone-input-group {
        flex-direction: column;
        height: auto;
        gap: 8px;
    }
    
    .country-code-select {
        min-width: 100%;
        width: 100%;
        height: 42px;
        font-size: 16px;
        padding: 10px 14px;
    }
    
    .phone-number-input {
        width: 100%;
        height: 42px;
        font-size: 16px;
    }
    
    .nitin-modal-submit {
        height: 42px;
        font-size: 14px;
    }
    
    .nitin-modal-note {
        font-size: 11px;
    }
    
    .lm-success-message,
    .lm-error-message {
        padding: 10px 14px;
        font-size: 13px;
    }
}