/* 
   OwnPay Support Portal — Stylesheet
   Premium Light / White Shade Theme
*/

/* 1. Design System & Variables */
:root {
    /* Color Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-card: #ffffff;
    --text-primary: #0a1128;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    /* Brand Accents */
    --brand-blue: #0F97ED;
    --brand-navy: #102963;
    --brand-glow: rgba(15, 151, 237, 0.08);

    /* Support Channel Accents */
    --github-color: #24292e;
    --github-bg: rgba(36, 41, 46, 0.05);
    --discussions-color: #0366d6;
    --discussions-bg: rgba(3, 102, 214, 0.05);
    --facebook-color: #1877f2;
    --facebook-bg: rgba(24, 119, 242, 0.05);
    --youtube-color: #ff0000;
    --youtube-bg: rgba(255, 0, 0, 0.05);
    --email-color: #0d9488;
    --email-bg: rgba(13, 148, 136, 0.05);

    /* Layout Borders & Shadows */
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 30px -10px rgba(16, 41, 99, 0.04);

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* 3. Layout Utilities */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 4. Header & Navigation */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-image {
    height: 80px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--brand-blue);
}

.nav-btn-secondary {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.nav-btn-secondary:hover {
    background-color: var(--bg-primary);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
}

/* 5. Hero Section */
.hero-section {
    background: radial-gradient(circle at top right, rgba(15, 151, 237, 0.03), transparent 40%),
        radial-gradient(circle at bottom left, rgba(16, 41, 99, 0.02), transparent 40%);
    padding: 96px 0 64px;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--brand-glow);
    color: var(--brand-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--brand-navy) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Search Box Design */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.search-box:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(15, 151, 237, 0.15), var(--shadow-lg);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--text-primary);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-hint {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* 6. Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* 7. Guides Section */
.guides-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.guide-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.guide-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-premium);
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--brand-glow);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
}

.arrow-icon {
    transition: var(--transition-smooth);
}

.guide-card:hover .arrow-icon {
    transform: translateX(4px);
}

/* 8. Support Channels Section */
.channels-section {
    padding: 80px 0;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.channel-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.channel-card-wide {
    grid-column: span 2;
}

.channel-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.channel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.channel-icon-bg {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Channel specific theme colors */
.github-color {
    color: var(--github-color);
    background-color: var(--github-bg);
}

.discussions-color {
    color: var(--discussions-color);
    background-color: var(--discussions-bg);
}

.facebook-color {
    color: var(--facebook-color);
    background-color: var(--facebook-bg);
}

.youtube-color {
    color: var(--youtube-color);
    background-color: var(--youtube-bg);
}

.email-color {
    color: var(--email-color);
    background-color: var(--email-bg);
}

.channel-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.status-active {
    background-color: #f0fdf4;
    color: #166534;
}

.channel-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.channel-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.channel-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom: 2px solid transparent;
}

.channel-action-link svg {
    transition: var(--transition-smooth);
}

.channel-action-link:hover {
    color: var(--brand-blue);
}

.channel-action-link:hover svg {
    transform: translate(2px, -2px);
}

/* 9. Footer Section */
.main-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 64px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-link:hover {
    color: var(--brand-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    background-color: var(--bg-primary);
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #166534;
    background-color: #f0fdf4;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(22, 101, 52, 0.08);
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* 10. Responsive Design (Mobile First Media Queries) */
@media (max-width: 900px) {
    .channels-grid {
        grid-template-columns: 1fr;
    }

    .channel-card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 56px;
    }

    .footer-logo {
        height: 64px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 48px;
        flex-wrap: wrap;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   11. New Components — FAQ, Secure Form, Alert Notifications & SEO Link Widget
   ========================================================================== */

/* FAQ Accordion Styling */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-accordion {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.faq-accordion[open] {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-md);
}
.faq-summary {
    padding: 20px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-icon {
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-accordion[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--brand-blue);
}
.faq-content {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.faq-content p {
    margin: 0;
}

/* Secure Inquiry Form Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.text-left {
    text-align: left;
    margin: 0 0 8px 0;
}
.contact-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.contact-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.contact-meta-item svg {
    color: var(--email-color);
    flex-shrink: 0;
}
.contact-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: var(--transition-smooth);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(15, 151, 237, 0.12);
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}
.submit-button {
    width: 100%;
    background-color: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(15, 151, 237, 0.2);
    transition: var(--transition-smooth);
}
.submit-button:hover:not(:disabled) {
    background-color: #0d83cf;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 151, 237, 0.35);
}
.submit-button:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.6;
}
.submit-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.submit-button:hover:not(:disabled) .submit-icon {
    transform: translate(3px, -3px);
}
.submit-button.submitting .submit-icon {
    animation: spinner 0.8s linear infinite;
}
@keyframes spinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Alert Notification Panel */
.alert-box {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.6;
    animation: slideDownAlert 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDownAlert {
    from { transform: translateY(-12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.alert-success {
    background-color: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #166534;
}
.alert-error {
    background-color: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}
.ticket-ref {
    display: inline-block;
    margin-top: 8px;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
    background-color: rgba(22, 101, 52, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    color: #15803d;
}

/* Off-Page Backlink Widget */
.link-widget-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}
.link-widget-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.widget-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.widget-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--brand-glow);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}
.widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
.widget-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}
.snippets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.snippet-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.snippet-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.snippet-box code {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    word-break: break-all;
    flex-grow: 1;
    line-height: 1.5;
}
.copy-button {
    align-self: flex-start;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.copy-button:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
}
.copy-button.copied {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .snippets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}