* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    overflow-x: auto;
    padding-bottom: 10px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 60px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-label {
    font-size: 11px;
    text-align: center;
    color: #999;
    transition: color 0.3s ease;
}

.progress-step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

/* Language Options */
.language-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lang-btn {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 500;
}

.lang-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.lang-btn.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.flag {
    font-size: 32px;
}

/* Fair Options */
.fair-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fair-btn {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
}

.fair-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.fair-btn.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.fair-btn .fair-code {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Visit Type Options */
.visit-type-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visit-type-btn {
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 500;
}

.visit-type-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.visit-type-btn.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.icon {
    font-size: 32px;
}

/* Verification Options */
.verification-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.verification-btn {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
}

.verification-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.verification-btn.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.verification-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:read-only {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Step Buttons */
.step-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.step-buttons .btn {
    flex: 1;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled,
.btn-primary.btn-disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled:hover,
.btn-primary.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* Messages */
.success-message {
    color: #4caf50;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
}

.error-message {
    color: #f44336;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #ffebee;
    border-radius: 8px;
}

/* Invite Section */
.invite-section {
    text-align: center;
}

.invite-section p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 20px;
    }

    .progress-bar {
        gap: 5px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    h2 {
        font-size: 20px;
    }

    .lang-btn,
    .visit-type-btn,
    .verification-btn {
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .form-wrapper {
        padding: 15px;
        border-radius: 15px;
    }

    .progress-bar {
        margin-bottom: 30px;
    }

    .step-label {
        display: none;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Intl Tel Input Customization */
.iti {
    width: 100%;
    position: relative;
    display: flex;
    align-items: stretch;
}

.iti__flag-container {
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: white;
}

/* Separate Dial Code Styling */
.iti--separate-dial-code {
    display: flex;
    align-items: stretch;
}

.iti--separate-dial-code .iti__selected-flag {
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: white;
    padding: 0;
}

.iti--separate-dial-code .iti__selected-dial-code {
    padding: 12px 12px;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-right: none;
    background: white;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    user-select: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.iti--separate-dial-code input {
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 15px;
    flex: 1;
}

.iti--separate-dial-code input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.iti--separate-dial-code.iti--allow-dropdown .iti__selected-flag:focus,
.iti--separate-dial-code.iti--allow-dropdown .iti__selected-dial-code:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* WhatsApp için ülke kodu tıklanabilir */
.iti--separate-dial-code.iti--allow-dropdown .iti__selected-dial-code {
    cursor: pointer;
}

.iti--separate-dial-code.iti--allow-dropdown .iti__selected-dial-code:hover {
    background: #f5f5f5;
}

/* SMS için ülke kodu değiştirilemez */
.iti--separate-dial-code:not(.iti--allow-dropdown) .iti__selected-dial-code {
    pointer-events: none;
    cursor: default;
    background: #f5f5f5;
}

.iti--separate-dial-code:not(.iti--allow-dropdown) .iti__selected-flag {
    pointer-events: none;
    cursor: default;
    background: #f5f5f5;
}

