/* ============================================
   WEBSITE AI QUICKSCAN PAGE STYLES
   Enhanced with new design system
   ============================================ */

/* Section Base */
.website-quickscan-section {
    padding: 8rem 0 5rem 0;
    min-height: calc(100vh - 80px);
    background: var(--gradient-subtle);
}

/* Header */
.quickscan-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quickscan-header h1 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

.quickscan-header p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   INPUT FORM
   ============================================ */

.quickscan-input {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.scan-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input[type="url"] {
    padding: 1.125rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 1.125rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s ease;
    color: var(--text-primary);
}

.form-group input[type="url"]::placeholder {
    color: var(--text-muted);
}

.form-group input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

.btn-analyze {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-analyze:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    font-size: 24px;
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading-state {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 4rem 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin: 0;
}

.loading-step {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* ============================================
   ERROR STATE
   ============================================ */

.error-state {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 4rem 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.error-icon {
    font-size: 60px;
    color: #ef4444;
}

.error-state h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin: 0;
}

.error-state p {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.results-section {
    max-width: 1000px;
    margin: 0 auto;
}

.results-header {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    text-align: center;
}

.results-header h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.website-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   SCORE CARD
   ============================================ */

.score-card {
    background: var(--gradient-hero);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.score-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(72, 202, 228, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.score-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.score-value {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.125rem;
    opacity: 0.95;
}

/* ============================================
   SUMMARY CARD
   ============================================ */

.summary-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.summary-card h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-card h3 .material-symbols-outlined {
    color: var(--primary-500);
    font-size: 28px;
}

.summary-text {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ============================================
   OPPORTUNITIES SECTION
   ============================================ */

.opportunities-section {
    margin-bottom: 2rem;
}

.opportunities-section > h3 {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.opportunity-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.opportunity-title {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-600);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.opportunity-section {
    margin-bottom: 1.5rem;
}

.opportunity-section:last-child {
    margin-bottom: 0;
}

.opportunity-section h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.opportunity-section p {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   NEXT STEPS
   ============================================ */

.next-steps-section {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.next-steps-section h3 {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

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

.step-card {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all 0.25s ease;
}

.step-card:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-title {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-duration {
    font-family: 'DM Sans', sans-serif;
    color: var(--primary-600);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.step-description {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: var(--gradient-hero);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(72, 202, 228, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h3 {
    font-family: 'Outfit', sans-serif;
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
    position: relative;
}

.cta-section > p {
    font-family: 'DM Sans', sans-serif;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    position: relative;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.cta-benefits li {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* CTA Options */
.cta-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

.cta-option h4 {
    font-family: 'Outfit', sans-serif;
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.cta-option p {
    font-family: 'DM Sans', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-cta {
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

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

.btn-cta.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cta.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   CONTACT FORM CONTAINER
   ============================================ */

.contact-form-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-lg);
}

.contact-form-container h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.inline-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inline-contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.inline-contact-form label {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.inline-contact-form input,
.inline-contact-form textarea {
    padding: 0.9375rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s ease;
    color: var(--text-primary);
}

.inline-contact-form input:focus,
.inline-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

.inline-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

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

.form-status {
    margin-top: 1rem;
    padding: 0.875rem;
    border-radius: var(--radius-lg);
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9375rem;
}

.form-status .success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 0.875rem;
    border-radius: var(--radius-lg);
}

.form-status .error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.875rem;
    border-radius: var(--radius-lg);
}

/* ============================================
   BACKGROUND IMAGE
   ============================================ */

.website-quickscan-with-bg {
    position: relative;
    overflow: hidden;
}

.quickscan-page-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.quickscan-page-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(2px);
}

.quickscan-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(250, 251, 252, 0.92) 0%,
        rgba(244, 245, 247, 0.94) 100%);
}

.website-quickscan-with-bg .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .website-quickscan-section {
        padding: 6rem 0 3rem 0;
    }

    .quickscan-header h1 {
        font-size: 1.875rem;
    }

    .quickscan-header p {
        font-size: 1rem;
    }

    .quickscan-input {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-xl);
    }

    .form-group input[type="url"] {
        font-size: 1rem;
    }

    .btn-analyze {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .loading-state,
    .error-state {
        padding: 3rem 1.5rem;
    }

    .score-value {
        font-size: 4rem;
    }

    .summary-card,
    .opportunity-card,
    .next-steps-section {
        padding: 2rem 1.5rem;
    }

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

    .cta-section {
        padding: 2.5rem 1.5rem;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

    .cta-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-option {
        padding: 1.5rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-cta {
        width: 100%;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
    }

    .opportunity-card,
    .cta-option,
    .step-card,
    .btn-analyze,
    .btn-cta {
        transition: none;
    }
}
