/**
 * AgileXPS Onboarding System Styles
 * Professional dark theme with gold accents
 * Clean, accessible, mobile-first design
 */

/* Base Onboarding Page Styles */
.onboard-page {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

.onboard-main {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: calc(100vh - 140px);
}

/* Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4e4ba);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.progress-step {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
    text-align: center;
    flex: 1;
}

.progress-step.active {
    color: #d4af37;
    font-weight: 500;
}

/* Container */
.onboard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Step Sections */
.onboard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

.step-content {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.8));
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-header h1,
.step-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #f5f0e8;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.step-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Path Selection Grid */
.path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.path-card {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(25, 25, 45, 0.8));
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    opacity: 0;
    transition: opacity 0.3s;
}

.path-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.path-card:hover::before,
.path-card.selected::before {
    opacity: 1;
}

.path-card.selected {
    border-color: #d4af37;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.path-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.path-icon {
    width: 28px;
    height: 28px;
    color: #d4af37;
}

.path-card h3 {
    font-size: 1.2rem;
    color: #f5f0e8;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.path-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.path-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.path-highlights li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.path-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-size: 0.75rem;
}

/* Back Button */
.back-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    color: #f5f0e8;
}

/* Form Elements */
.form-section {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 0.5rem;
}

.form-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

/* Checkbox/Radio Grid */
.checkbox-grid,
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.checkbox-card,
.radio-card {
    display: block;
    cursor: pointer;
}

.checkbox-card input,
.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-content,
.radio-content {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.25s;
    text-align: center;
}

.checkbox-card:hover .checkbox-content,
.radio-card:hover .radio-content {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.05);
}

.checkbox-card input:checked + .checkbox-content,
.radio-card input:checked + .radio-content {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    color: #f5f0e8;
}

/* Partner Type Cards */
.partner-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.partner-type-card {
    display: block;
    cursor: pointer;
}

.partner-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.partner-type-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.25s;
}

.partner-type-card:hover .partner-type-content {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.05);
}

.partner-type-card input:checked + .partner-type-content {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.partner-type-content h4 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.partner-type-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.partner-earning {
    display: inline-block;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Form Inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: #f5f0e8;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.25s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #0f0f1a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #f5f0e8;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
}

.btn-outline {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-next {
    width: 100%;
    margin-top: 2rem;
    padding: 1.25rem;
    font-size: 1.1rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Services Detail List */
.services-detail-list {
    display: grid;
    gap: 1.5rem;
}

.service-detail-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
}

.service-detail-item h4 {
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.service-detail-item p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-detail-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.service-detail-item li {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    padding-left: 1.25rem;
    position: relative;
}

.service-detail-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #d4af37;
}

.partner-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border-left: 3px solid #d4af37;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-selection {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
}

/* Commitment Options */
.commitment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.commitment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}

.commitment-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.05);
}

.commitment-card.selected {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.commitment-card h3 {
    color: #f5f0e8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.commitment-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.commitment-note {
    display: block;
    font-size: 0.8rem;
    color: #d4af37;
}

/* Contact Form */
.contact-form {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.contact-form h3 {
    color: #f5f0e8;
    margin-bottom: 1.5rem;
}

/* Review Summary */
.review-summary {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.review-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.25rem;
}

.review-section h4 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.review-section p {
    color: #f5f0e8;
    font-size: 1rem;
    margin: 0;
}

/* MOU Preview */
.mou-preview {
    margin-top: 2rem;
}

.mou-preview h3 {
    color: #f5f0e8;
    margin-bottom: 1.5rem;
}

.mou-document {
    background: #fff;
    color: #1a1a2e;
    border-radius: 8px;
    padding: 2rem;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.mou-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mou-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* MOU Document Styles */
.mou-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mou-logo {
    font-size: 1rem;
}

.mou-disclaimer {
    text-align: right;
    color: #b8860b;
    font-size: 0.8rem;
}

.mou-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1rem 0;
}

.mou-title {
    text-align: center;
    margin: 1.5rem 0;
}

.mou-title h2 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.mou-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.mou-notice {
    background: #fff8e7;
    border: 1px solid #d4af37;
    border-radius: 6px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
}

.mou-section {
    margin: 1.5rem 0;
}

.mou-section h3 {
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #eee;
}

.mou-section h4 {
    font-size: 0.9rem;
    margin: 1rem 0 0.5rem;
}

.mou-section p {
    margin-bottom: 0.75rem;
}

.mou-section ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.mou-section li {
    margin-bottom: 0.25rem;
}

.mou-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1rem 0;
}

.mou-party {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
}

.mou-date {
    margin-top: 1rem;
}

.mou-family-list {
    margin-left: 1.5rem;
}

.mou-service {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.mou-final-notice {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.mou-signature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.mou-signature {
    padding-top: 1rem;
}

.signature-line {
    border-bottom: 1px solid #333;
    height: 40px;
    margin-bottom: 0.5rem;
}

.mou-footer {
    margin-top: 2rem;
    text-align: center;
}

.mou-footer-text {
    font-size: 0.8rem;
    color: #666;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 2rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: #4ade80;
}

.success-message h3 {
    color: #4ade80;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.success-message p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Explore Section */
.explore-content {
    display: grid;
    gap: 2rem;
}

.explore-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
}

.explore-section h3 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.explore-section p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.service-mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.service-mini {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.explore-cta {
    text-align: center;
    margin-top: 2rem;
}

.explore-cta p {
    color: #f5f0e8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.explore-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.onboard-footer {
    background: rgba(15, 15, 26, 0.8);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 1.5rem 2rem;
}

.onboard-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.onboard-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d4af37;
}

/* Responsive */
@media (max-width: 768px) {
    .step-content {
        padding: 1.5rem;
    }

    .path-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mou-parties,
    .mou-signature-block {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mou-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .mou-disclaimer {
        text-align: center;
    }

    .onboard-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .explore-buttons {
        flex-direction: column;
    }

    .explore-buttons .btn {
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .onboard-step {
        animation: none;
    }

    .path-card,
    .btn,
    .progress-fill {
        transition: none;
    }
}

/* Focus states */
.path-card:focus-visible,
.checkbox-card:focus-visible,
.radio-card:focus-visible,
.partner-type-card:focus-visible,
.commitment-card:focus-visible,
.btn:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}
