* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f7f8fa;
    color: #000;
    line-height: 1.4;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

.step {
    display: none;
    flex-direction: column;
    height: 100%;
}

.step.active {
    display: flex;
}

.header {
    margin-bottom: 30px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 500;
}

.header p {
    color: #707579;
    font-size: 14px;
    margin-bottom: 5px;
}

.phone-display {
    font-weight: 500;
    color: #000 !important;
    margin-top: 10px !important;
}

.form-group {
    margin-bottom: 20px;
}

.country-selector {
    margin-bottom: 15px;
}

.country-selector select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fff;
    appearance: none;
    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='currentColor' 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 10px center;
    background-size: 1em;
}

.phone-input input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    font-size: 16px;
}

input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #34abde;
}

.profile-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-upload {
    margin-bottom: 20px;
    position: relative;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #707579;
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer {
    margin-top: auto;
    padding-bottom: 20px;
    width: 100%;
}

.btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    margin-bottom: 10px;
}

.btn.primary {
    background-color: #34abde;
    color: white;
}

.btn.primary:disabled {
    background-color: #a5d8f0;
    cursor: not-allowed;
}

.btn.link {
    background: none;
    color: #34abde;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #34abde;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    input, .btn, .country-selector select {
        padding: 10px 12px;
    }
}

/* به فایل style.css اضافه کنید */
input:invalid {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    display: none;
}