/* Step-by-Step Registration Form */

:root {
    --primary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step-registration-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    gap: 0;
}

/* Progress Panel */
.progress-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.progress-panel .panel-content {
    width: 100%;
    max-width: 500px;
}

.progress-panel h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.progress-panel > .panel-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
    transition: var(--transition);
}

.step-item.active {
    opacity: 1;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.step-item.active .step-number {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: var(--shadow-dark);
    transform: scale(1.1);
}

.step-label h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.step-label p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 3px 0 0 0;
}

.step-connector {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 22px;
    transition: var(--transition);
}

.step-item.active ~ .step-connector {
    background: rgba(255, 255, 255, 0.4);
}

/* Benefits List */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    gap: 15px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.benefit-item p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

/* Form Panel */
.form-panel {
    background: var(--white);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.form-card {
    width: 100%;
    max-width: 500px;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.form-step.active {
    display: block;
}

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

.form-step h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.step-description {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.strength-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: var(--transition);
}

.strength-bar.strength-1::after {
    width: 25%;
    background: #e74c3c;
}

.strength-bar.strength-2::after {
    width: 50%;
    background: #f39c12;
}

.strength-bar.strength-3::after {
    width: 75%;
    background: #f1c40f;
}

.strength-bar.strength-4::after {
    width: 100%;
    background: #27ae60;
}

.strength-text {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

/* Password Match */
.password-match-text {
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.password-match-text:not(:empty) {
    display: block;
}

.password-match-text.match-success {
    color: #27ae60;
    font-weight: 600;
}

.password-match-text.match-error {
    color: #e74c3c;
    font-weight: 600;
}

/* Checkbox */
.form-group.checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 25px 0;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-group.checkbox label {
    margin: 0;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-group.checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-group.checkbox a:hover {
    text-decoration: underline;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 250px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

#map {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.btn-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-dark);
}

.location-display {
    background: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.location-display h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.location-display p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

/* Verification Message */
.verification-message {
    background: #f0f4f8;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.verification-message p {
    color: #2c3e50;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: #e0e0e0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

/* Auth Link */
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 1024px) {
    .step-registration-container {
        grid-template-columns: 1fr;
    }

    .progress-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
    }
}

@media (max-width: 768px) {
    .form-panel {
        padding: 25px;
    }

    .form-card {
        max-width: 100%;
    }

    .form-step h2 {
        font-size: 1.6rem;
    }

    .step-description {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-actions {
        gap: 10px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .map-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .form-panel {
        padding: 15px;
    }

    .form-step h2 {
        font-size: 1.3rem;
    }

    .step-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-hint {
        font-size: 0.8rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .map-container {
        height: 180px;
    }

    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
