/* Build Your App Page Styles */

/* Typography - Following styles.md specifications */
h1, .app-hero-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3.75rem;     /* 60px */
    font-weight: 800;       /* Extra Bold */
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #111827;         /* gray-900 */
}

h2, .section-title, .video-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;      /* 40px */
    font-weight: 700;       /* Bold */
    line-height: 1.2;
    color: #111827;         /* gray-900 */
}

h3, .service-title, .benefit-title, .step-title, .form-section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;     /* 28px */
    font-weight: 700;       /* Bold */
    line-height: 1.3;
    color: #111827;         /* gray-900 */
}

h4, .portfolio-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;     /* 20px */
    font-weight: 600;       /* Semi-Bold */
    line-height: 1.4;
    color: #111827;         /* gray-900 */
}

h5 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;    /* 18px */
    font-weight: 600;       /* Semi-Bold */
    line-height: 1.4;
    color: #111827;         /* gray-900 */
}

h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;        /* 16px */
    font-weight: 600;       /* Semi-Bold */
    line-height: 1.5;
    color: #374151;         /* gray-700 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Body Text */
p, .hero-subtitle, .section-description, .service-description, .benefit-description, .step-description, .video-description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;        /* 16px */
    font-weight: 400;       /* Normal */
    line-height: 1.6;
    color: #6b7280;         /* gray-500 */
}

/* Large paragraph text */
.hero-subtitle, .section-description, .video-description {
    font-size: 1.125rem;    /* 18px */
    line-height: 1.6;
}

/* Hero Section */
.app-hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.app-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.app-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2rem;
}

.app-hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.app-hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Video Section */
.app-video {
    padding: 6rem 0;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
}

.video-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.video-header {
    margin-bottom: 3rem;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.video-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.video-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #000000;
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-video-player {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    background: #000000;
}

.app-video-player:focus {
    outline: 3px solid rgba(31, 41, 55, 0.3);
    outline-offset: 4px;
}

/* Process Section */
.app-process {
    padding: 6rem 0;
    background: #ffffff;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: #1f2937;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.step-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Questionnaire Section - Full Width Modern Design */
.app-questionnaire {
    padding: 6rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.app-questionnaire::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.questionnaire-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

.questionnaire-header .section-title {
    color: #111827;
    margin-bottom: 1rem;
}

.questionnaire-header .section-description {
    color: #6b7280;
    font-size: 1.125rem;
}

/* Progress Bar */
.progress-container {
    max-width: 1400px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 2;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    padding-top: 20px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.progress-fill {
    position: absolute;
    top: 40px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.5s ease;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-step.active .progress-step-circle {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-color: transparent;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.progress-step.completed .progress-step-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    color: #ffffff;
}

.progress-step-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.progress-step.active .progress-step-label {
    color: #111827;
    font-weight: 600;
}

.progress-step.completed .progress-step-label {
    color: #cbd5e1;
}

/* Form Container */
.questionnaire-form {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-shake {
    animation: shake 0.3s ease;
    border-color: #ef4444 !important;
}

.form-step-content {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.form-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-step-description {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-grid.single-column {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #374151;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Choice Cards */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.choice-card {
    position: relative;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.choice-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.choice-card input[type="radio"],
.choice-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.choice-card input:checked + .choice-card-content {
    color: #3b82f6;
}

.choice-card:has(input:checked) {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.choice-card-icon {
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
    color: #64748b;
}

.choice-card-icon svg {
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.choice-card:hover .choice-card-icon {
    transform: scale(1.1);
    color: #3b82f6;
}

.choice-card:has(input:checked) .choice-card-icon {
    color: #3b82f6;
}

.choice-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.choice-card-description {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Feature Checkboxes */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-card {
    position: relative;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-card:hover {
    border-color: #3b82f6;
    background: #f9fafb;
}

.feature-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}

.feature-card:has(input:checked) {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.feature-card-text {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.feature-card input:checked + .feature-card-text {
    color: #1f2937;
    font-weight: 600;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f3f4f6;
}

.btn-nav {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-prev {
    background: #f3f4f6;
    color: #374151;
}

.btn-prev:hover {
    background: #e5e7eb;
    transform: translateX(-4px);
}

.btn-next, .btn-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-next:hover, .btn-submit:hover {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    transform: translateX(4px);
}

.btn-submit {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 0;
    background: #ffffff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.benefit-icon {
    margin-bottom: 1.5rem;
    color: #1f2937;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-icon svg {
    stroke: #1f2937;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon svg {
    stroke: #111827;
    transform: scale(1.1);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.benefit-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Form Message Styles */
.form-message {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-message.success {
    background: #ecfdf5;
    color: #059669;
    border: 2px solid #a7f3d0;
}

.form-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .choice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1, .app-hero-title {
        font-size: 2.5rem;
    }
    
    h2, .section-title, .video-title {
        font-size: 2rem;
    }
    
    .app-hero {
        padding: 6rem 0 4rem;
    }
    
    .app-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .app-video {
        padding: 4rem 0;
    }
    
    .video-container {
        margin: 0 1rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .form-step-content {
        padding: 1.5rem 1rem;
    }
    
    .form-step-title {
        font-size: 1.25rem;
    }
    
    .choice-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-step-label {
        font-size: 0.625rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    h1, .app-hero-title {
        font-size: 2rem;
    }
    
    h2, .section-title, .video-title {
        font-size: 1.75rem;
    }
    
    h3, .service-title, .benefit-title, .step-title, .form-section-title {
        font-size: 1.25rem;
    }
    
    .video-container {
        margin: 0 0.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-step-content {
        padding: 1.5rem 1rem;
    }
    
    .progress-step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
