.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.sms-modal {
    position:relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #273239 0%, #48565e 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.modal-header h2 {
    font-size: 3.5rem;
    margin-bottom: 5px;
}

.modal-header p {
    opacity: 0.9;
    font-size: 1.9rem;
}

.modal-body {
    padding: 30px;
}

.phone-number {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
    font-size: 2.1rem;
}

.code-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.code-input:focus {
    border-color: #f5814f;
    box-shadow: 0 0 0 3px rgba(246, 86, 19, 100);
    outline: none;
}

.code-input.filled {
    border-color: #f5814f;
    background-color: #f8f7ff;
}

.timer {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.resend-link {
    text-align: center;
    margin-bottom: 25px;
}

.resend-link a {
    color: #f5814f;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.resend-link a:hover {
    color: #F15613FF;
}

.resend-link a.disabled {
    color: #999;
    pointer-events: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f5814f 0%, #F3A685FF 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 50, 57, 1);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 3.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 10px;
    font-size: 1.9rem;
    min-height: 20px;
}

@media (max-width: 480px) {
    .sms-modal {
        max-width: 100%;
    }

    .code-input {
        width: 45px;
        height: 55px;
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 20px;
    }
}