/* =========================================
   1. RESET / BASE STYLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f8f8fb;
    color: #222;
}

h1,
h2 {
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    padding-left: 1.2rem;
}

/* =========================================
   2. THEME VARIABLES
========================================= */
:root {
    --bg-main: #f8f8fb;
    --bg-soft: #f5eef2;
    --bg-header: #f7eef2;
    --bg-header-light: #fcfafb;
    --accent: #8b2e56;
    --accent-dark: #6f2345;
    --accent-soft: #f1dbe5;
    --accent-soft-border: #e8cad6;
    --text-main: #222;
    --text-muted: #555;
    --white: #ffffff;
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.08);
    --shadow-badge: 0 6px 15px rgba(0, 0, 0, 0.04);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 22px;
}

/* =========================================
   3. LAYOUT CONTAINERS
========================================= */
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background-color: var(--bg-soft);
    padding: 3.5rem 0;
}

/* =========================================
   4. ACCESSIBILITY
========================================= */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: var(--white);
    color: #000;
    padding: 0.75rem 1rem;
    z-index: 1000;
    border: 2px solid var(--accent);
}

/* =========================================
   5. HEADER / NAVIGATION
========================================= */
.site-header {
    background: linear-gradient(135deg, var(--bg-header), var(--bg-header-light));
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.logo img {
    height: 72px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
}

.nav-links a,
.nav-link-button {
    position: relative;
    color: #333;
    font: inherit;
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-link-button:hover,
.nav-link-button:focus {
    color: var(--accent);
    opacity: 0.9;
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 700;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-logout-form {
    margin: 0;
}

.nav-link-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-user {
    opacity: 0.7;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

/* =========================================
   6. HERO SECTION
========================================= */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 3rem 0 1rem;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(241, 219, 229, 0.7);
    filter: blur(30px);
    border-radius: 50%;
    top: 10%;
    right: 8%;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.7rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 650px;
}

.hero-description {
    max-width: 650px;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* =========================================
   7. LABELS / BADGES
========================================= */
.tagline,
.section-label {
    display: inline-block;
    background-color: var(--accent-soft);
    color: var(--accent);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.mini-label {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background-color: var(--accent-soft);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.trust-badges span {
    background-color: var(--white);
    color: var(--accent);
    border: 1px solid var(--accent-soft-border);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow-badge);
}

/* =========================================
   8. BUTTON SYSTEM
========================================= */
.hero-buttons,
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons {
    margin-top: 1.5rem;
}

.button-group {
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.button-group form {
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.btn:focus {
    outline: 3px solid rgba(139, 46, 86, 0.18);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(139, 46, 86, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #d9534f;
    color: var(--white);
    box-shadow: 0 10px 22px rgba(217, 83, 79, 0.22);
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #c9302c;
    transform: translateY(-1px);
}

.btn-sm {
    min-height: 40px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.btn-full {
    width: 100%;
}

/* =========================================
   9. HERO VISUAL CARDS
========================================= */
.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
}

.hero-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    height: 100%;
}

.hero-card h2 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.hero-card p {
    margin-bottom: 0.8rem;
}

.hero-card ul {
    margin-bottom: 0;
}

.hero-card-main {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.hero-card-small {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.top-card {
    grid-column: 2;
    grid-row: 1;
}

.bottom-card {
    grid-column: 2;
    grid-row: 2;
}

/* =========================================
   10. SECTION HEADINGS
========================================= */
.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

/* =========================================
   11. GRID LAYOUTS
========================================= */
.card-grid,
.pricing-grid,
.feature-grid,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-grid,
.request-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}

/* =========================================
   12. SHARED CARDS / BOXES
========================================= */
.card,
.price-card,
.feature-box,
.testimonial-card,
.notice-box,
.contact-info-box,
.contact-form,
.request-status-panel {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.card,
.feature-box,
.price-card,
.testimonial-card,
.contact-form {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.10);
}

.card h3,
.price-card h3,
.feature-box h3,
.contact-info-box h3,
.notice-box h3 {
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.card p,
.price-card p,
.feature-box p,
.contact-info-box p {
    margin-bottom: 1rem;
}

.notice-box {
    max-width: 850px;
    margin: 0 auto;
}

.notice-box ul li {
    margin-bottom: 0.55rem;
}

/* =========================================
   13. HOW IT WORKS
========================================= */
.how-it-works-grid {
    margin-top: 2rem;
}

.how-step {
    position: relative;
    text-align: left;
    padding-top: 3.5rem;
}

.how-step-number {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: var(--shadow-badge);
}

.how-step h3 {
    margin-bottom: 0.75rem;
}

.how-it-works-note {
    margin-top: 2rem;
    text-align: center;
}

.how-it-works-note p {
    display: inline-block;
    background-color: var(--white);
    border: 1px solid var(--accent-soft-border);
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    box-shadow: var(--shadow-soft);
    color: var(--text-main);
}

/* =========================================
   14. PRICING
========================================= */
.price {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-card {
    padding: 1.8rem;
}

.price-card h2 {
    color: var(--text-main);
    margin-bottom: 0.8rem;
    font-size: 1.9rem;
}

.price-card p {
    margin-bottom: 0.8rem;
}

.price-card ul {
    margin: 1rem 0 1.25rem;
}

.price-card li {
    margin-bottom: 0.55rem;
}

.price-card .btn {
    margin-top: 0.5rem;
}

.featured-card {
    border: 2px solid var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(139, 46, 86, 0.12);
}

.pricing-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

/* =========================================
   15. TESTIMONIALS
========================================= */
.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--accent);
}

/* =========================================
   16. FORMS
========================================= */
.form-intro {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-input {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #d7c3cb;
    border-radius: var(--radius-sm);
    font: inherit;
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-input:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-note-alt {
    text-align: center;
    margin-top: 0.65rem;
}

.form-errors {
    background-color: #fff1f4;
    border: 1px solid #e8cad6;
    color: #8b2e56;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.form-errors p {
    margin: 0;
    font-weight: 700;
}

.has-error input,
.has-error select,
.has-error textarea {
    border: 2px solid #d9534f;
    background-color: #fff8f8;
}

.has-error input:focus,
.has-error select:focus,
.has-error textarea:focus {
    outline: 3px solid rgba(217, 83, 79, 0.18);
    border-color: #d9534f;
}

.field-error {
    margin-top: 0.45rem;
    color: #d9534f;
    font-size: 0.92rem;
    font-weight: 600;
}

.field-error ul {
    margin: 0;
    padding-left: 1rem;
}

/* =========================================
   17. FOOTER
========================================= */
.site-footer {
    background-color: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 0 1.75rem;
    letter-spacing: 0.5px;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
    margin-bottom: 1.25rem;
}

.footer-heading {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.25rem;
}

.footer-link {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
    background-color: var(--white);
    color: var(--accent);
}

#footer-text,
.footer-support-text {
    margin-top: 0.75rem;
}

.footer-support-text {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   18. DASHBOARD
========================================= */
.dashboard-container {
    width: min(1280px, 94%);
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-badge {
    background-color: #e11d48;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 1.45rem;
    height: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(225, 29, 72, 0.22);
    animation: badge-pulse 1.8s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 14px rgba(225, 29, 72, 0.22);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 18px rgba(225, 29, 72, 0.30);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 6px 14px rgba(225, 29, 72, 0.22);
    }
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dashboard-stats .card {
    padding: 1.2rem;
}

.dashboard-stats h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.dashboard-stats p {
    font-size: 1.6rem;
    font-weight: 800;
}

.dashboard-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.dashboard-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.dashboard-table th,
.dashboard-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--accent-soft-border);
    vertical-align: top;
}

.dashboard-table th {
    color: var(--accent);
    font-weight: 700;
    background-color: var(--accent-soft);
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-row:hover {
    background-color: #faf3f6;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.status-new {
    background-color: #fdf0c8;
    color: #8a6a00;
}

.status-in-progress {
    background-color: #dceafe;
    color: #1d4f91;
}

.status-completed {
    background-color: #dff5e4;
    color: #1f6b35;
}

/* =========================================
   19. REQUEST DETAIL PAGE
========================================= */
.request-detail-shell {
    max-width: 980px;
    margin: 0 auto;
}

.request-status-panel {
    margin-top: 1.5rem;
    text-align: center;
}

.request-status-panel h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.request-status-panel p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.request-status-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.request-status-form .btn {
    min-width: 140px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.request-status-form .btn-primary {
    box-shadow: 0 8px 20px rgba(139, 46, 86, 0.25);
}

.request-status-form .btn-primary:hover {
    transform: translateY(-2px);
}

.request-status-form .btn-secondary:hover {
    background-color: var(--accent-soft);
}

.request-message-box {
    margin-top: 1.5rem;
}

.request-message-box h3 {
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.request-message-text {
    white-space: pre-line;
    color: var(--text-main);
}

.request-detail-actions {
    margin-top: 1.5rem;
    text-align: center;
}

/* =========================================
   20. RESPONSIVE
========================================= */

/* Large tablets / small laptops */
@media screen and (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-visual {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
    }

    .hero-card-main,
    .hero-card-small,
    .top-card,
    .bottom-card {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .card-grid,
    .pricing-grid,
    .feature-grid,
    .testimonial-grid,
    .contact-grid,
    .request-detail-grid,
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets / large phones */
@media screen and (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        gap: 1rem;
        position: relative;
    }

    .menu-toggle {
        display: block;
        padding: 0.35rem 0.65rem;
        font-size: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: auto;
        width: min(240px, 80vw);
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 0.6rem 0.8rem;
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
        z-index: 30;
        list-style: none;
        backdrop-filter: blur(10px);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-visual {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-card-main,
    .hero-card-small,
    .top-card,
    .bottom-card {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .card-grid,
    .pricing-grid,
    .feature-grid,
    .testimonial-grid,
    .contact-grid,
    .request-detail-grid,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-table {
        min-width: 640px;
        font-size: 0.9rem;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 0.75rem 0.6rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .social-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-link {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
}

/* Phones */
@media screen and (max-width: 600px) {
    .btn {
        width: 100%;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .button-group form {
        width: 100%;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    .dashboard-table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 0.65rem 0.5rem;
    }
}