/* Custom styles to complement Bootstrap */
:root {
    --form-max-width: 600px;
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --text-color: #111827;
    --text-muted: #6B7280;
    --background-light: #ffffff;
    --form-spacing: 1.5rem;
    --input-height: 3rem;
    --border-radius: 12px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.container {
    max-width: var(--form-max-width);
    margin: auto;
    padding: 2rem 1rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 180px;
    height: auto;
}

.landing-page {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin: 1rem 0;
}

.welcome-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.welcome-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.6;
    font-weight: 400;
}

.team-photo-container {
    margin: 1.5rem auto 2.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: #f9fafb;
    width: 100%;
    max-width: 420px;
    height: 250px;
}

.team-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.start-onboarding-btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background-color: var(--primary-color);
    border: none;
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.025em;
}

.start-onboarding-btn:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.help-contact {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    width: 100%;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.help-phone {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.help-phone:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .landing-page {
        padding: 2rem 1.5rem;
        margin: 0.5rem 0;
    }
    
    .welcome-title {
        font-size: 1.875rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .start-onboarding-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .team-photo {
        max-width: 100%;
    }
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: var(--form-spacing);
    margin-bottom: 2rem;
}

.form-step {
    display: none;
}

.onboarding-content {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin: 1rem 0;
}

.progress {
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    transition: width 0.3s ease;
    border-radius: 9999px;
}

.step-indicator {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.025em;
}

/* Form Field Styles */
.form-group {
    margin-bottom: var(--form-spacing);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    height: var(--input-height);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.15s ease;
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 182, 255, 0.1);
    outline: none;
}

/* Row Spacing */
.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-bottom: var(--form-spacing);
}

.row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Radio and Checkbox Styles */
.form-check {
    margin-bottom: 1rem;
    padding-left: 1.75rem;
}

.form-check-input {
    margin-left: -1.75rem;
    margin-top: 0.3rem;
}

.form-check-label {
    font-size: 0.95rem;
    color: #374151;
}

/* Headings */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--form-spacing);
    color: #111827;
}

/* Button Styles */
.btn {
    min-width: 120px;
    height: var(--input-height);
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background-color: #2aa3f0;
    color: white;
    transform: translateY(-1px);
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: calc(var(--form-spacing) * 1.5);
}

.step-indicator {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: var(--form-spacing);
}

/* Agreement Section Styles */
.agreement-section {
    max-height: 400px;
    overflow-y: auto;
    padding: var(--form-spacing);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: var(--form-spacing);
    background-color: var(--background-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.agreement-section h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.agreement-section h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 1rem;
}

.agreement-section p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.agreement-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.agreement-section li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Custom scrollbar for agreement section */
.agreement-section::-webkit-scrollbar {
    width: 8px;
}

.agreement-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.agreement-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.agreement-section::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 576px) {
    :root {
        --form-spacing: 1.25rem;
    }

    .container {
        padding: 1rem;
    }

    .form-container {
        padding: var(--form-spacing);
        margin: 0 -0.5rem;
        border-radius: 8px;
    }

    .logo {
        max-width: 220px;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .step-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .row > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .agreement-section {
        max-height: 300px;
        font-size: 0.9rem;
    }

    .agreement-section h5 {
        font-size: 1.1rem;
    }

    .agreement-section h6 {
        font-size: 1rem;
    }
}