* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-section h1 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input {
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #f44336;
}

.error-text {
    color: #f44336;
    font-size: 12px;
    display: none;
    margin-top: 5px;
}

/* International Phone Input Overrides */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-right: 1px solid #e1e5e9;
}

.iti__selected-flag {
    padding: 0 15px;
}

.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    max-height: 200px;
}

.iti__country {
    padding: 10px 15px;
}

.iti__country:hover {
    background: #f5f5f5;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.back-btn, .continue-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.back-btn {
    background: #6c757d;
    color: white;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.back-btn svg {
    width: 18px;
    height: 18px;
}

.continue-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    position: relative;
}

.continue-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.continue-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

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

.btn-text, .btn-icon {
    transition: opacity 0.3s ease;
}

.continue-btn:disabled .btn-text {
    opacity: 0.3;
}

.continue-btn:disabled .btn-icon {
    opacity: 0;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.error-message {
    display: none;
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
    font-size: 14px;
    text-align: center;
    animation: fadeInError 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-card {
        padding: 30px 25px;
    }
    
    .header-section h1 {
        font-size: 24px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .form-group input {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .back-btn, .continue-btn {
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 25px 20px;
    }
    
    .contact-form {
        gap: 20px;
    }
}