/* =========================
   GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f9fc;
    color: #102a43;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================
   HEADER
========================= */

header {
    width: 100%;
    padding: 18px 6%;
    background: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #e6e8ec;

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 25px;
    font-weight: bold;
    color: #102a43;
}

.logo span {
    color: #f26b38;
}

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

nav a {
    color: #486581;
    font-size: 14px;
    font-weight: 600;
}

nav a:hover {
    color: #f26b38;
}

nav .nav-btn {
    background: #f26b38;
    color: white;

    padding: 9px 17px;

    border-radius: 7px;
}

nav .nav-btn:hover {
    background: #d95728;
    color: white;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 70px 6%;
    background: #f8f9fc;
}

.hero-container {
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 55px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.tag {
    color: #f26b38;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;
}

.hero-text h1 {
    font-size: 58px;
    line-height: 1.05;

    margin: 15px 0;

    color: #102a43;
}

.hero-text h1 span {
    color: #f26b38;
}

.hero-description {
    color: #627d98;

    font-size: 17px;
    line-height: 1.7;

    margin-bottom: 28px;
}


/* =========================
   BUTTONS
========================= */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-block;

    padding: 12px 20px;

    background: #f26b38;
    color: white;

    border-radius: 8px;

    font-weight: bold;

    border: none;

    cursor: pointer;

    transition: 0.2s;
}

.btn:hover {
    background: #d95728;
}

.outline-btn {
    display: inline-block;

    padding: 11px 20px;

    border: 1px solid #f26b38;

    color: #f26b38;

    border-radius: 8px;

    font-weight: bold;
}

.outline-btn:hover {
    background: #f26b38;
    color: white;
}


/* =========================
   HERO SLIDER
========================= */

.hero-slider {
    flex: 1;

    max-width: 560px;

    height: 390px;

    position: relative;

    overflow: hidden;

    border-radius: 22px;

    background: #ddd;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.15);
}

.slide {
    display: none;

    width: 100%;
    height: 100%;

    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.slide::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 55%;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.8)
    );
}

.slide-info {
    position: absolute;

    left: 30px;
    bottom: 35px;

    max-width: 400px;

    color: white;

    z-index: 2;
}

.slide-info span {
    font-size: 11px;

    letter-spacing: 2px;

    font-weight: bold;
}

.slide-info h2 {
    font-size: 30px;

    margin: 5px 0;
}

.slide-info p {
    font-size: 14px;

    line-height: 1.5;
}


/* =========================
   SLIDER BUTTONS
========================= */

.slider-btn {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    color: #102a43;

    font-size: 20px;

    cursor: pointer;

    z-index: 5;
}

.slider-btn:hover {
    background: white;

    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev {
    left: 18px;
}

.slider-btn.next {
    right: 18px;
}


/* =========================
   SLIDER DOTS
========================= */

.dots {
    position: absolute;

    bottom: 18px;
    right: 25px;

    display: flex;

    align-items: center;

    gap: 7px;

    z-index: 5;
}

.dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.5);

    cursor: pointer;
}

.dot.active {
    width: 24px;

    border-radius: 10px;

    background: white;
}


/* =========================
   MAIN CONTAINER
========================= */

.container {
    max-width: 1200px;

    margin: auto;

    padding: 70px 6%;
}

.section-title {
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 36px;

    margin: 5px 0;

    color: #102a43;
}

.muted {
    color: #829ab1;

    font-size: 15px;
}


/* =========================
   SEARCH & FILTER
========================= */

.filters {
    display: flex;

    gap: 15px;

    margin-bottom: 35px;
}

.filters input,
.filters select {
    padding: 13px 15px;

    border: 1px solid #d9e2ec;

    border-radius: 8px;

    background: white;

    outline: none;

    font-size: 14px;
}

.filters input {
    flex: 1;
}

.filters select {
    width: 220px;
}

.filters input:focus,
.filters select:focus {
    border-color: #f26b38;
}


/* =========================
   PROVIDER GRID
========================= */

.grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


/* =========================
   PROVIDER CARD
========================= */

.card {
    background: white;

    border: 1px solid #e6e8ec;

    border-radius: 14px;

    padding: 20px;

    transition: 0.3s;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.09);
}

.card img {
    width: 100%;

    height: 180px;

    object-fit: cover;

    border-radius: 10px;

    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 5px;

    color: #102a43;
}

.card p {
    color: #627d98;

    font-size: 14px;

    margin: 4px 0;
}

.price {
    color: #102a43 !important;

    font-weight: bold;

    font-size: 16px !important;

    margin: 10px 0 !important;
}


/* =========================
   PROVIDER DETAILS
========================= */

.provider-details {
    max-width: 1100px;

    margin: 60px auto;

    padding: 0 6%;
}

.detail-card {
    width: 100%;

    background: white;

    display: flex;

    align-items: center;

    gap: 40px;

    padding: 30px;

    border-radius: 18px;

    border: 1px solid #e6e8ec;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.detail-image {
    width: 430px;

    height: 330px;

    object-fit: cover;

    border-radius: 14px;

    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-content h1 {
    font-size: 40px;

    margin: 8px 0 10px;

    color: #102a43;
}

.detail-content p {
    color: #627d98;

    margin: 7px 0;
}


/* =========================
   DETAILS STATS
========================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin: 25px 0;
}

.stats div {
    background: #f8f9fc;

    padding: 15px;

    border-radius: 10px;

    text-align: center;
}

.stats b {
    display: block;

    color: #102a43;

    font-size: 16px;
}

.stats span {
    display: block;

    color: #829ab1;

    font-size: 12px;

    margin-top: 4px;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #102a43;

    color: white;

    padding: 30px 6%;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 13px;
}

footer p {
    margin: 3px 0;
}


/* =========================
   AUTH PAGES
========================= */

.auth {
    min-height: 85vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 40px 20px;
}

.box {
    width: 100%;

    max-width: 430px;

    background: white;

    padding: 35px;

    border-radius: 15px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);
}

.box h1 {
    margin: 8px 0 25px;
}

.box label {
    display: block;

    margin-bottom: 15px;

    font-size: 14px;

    font-weight: bold;
}

.box input,
.box select,
.box textarea {
    width: 100%;

    margin-top: 6px;

    padding: 12px;

    border: 1px solid #d9e2ec;

    border-radius: 7px;

    outline: none;

    background: white;
}

.box textarea {
    min-height: 100px;

    resize: vertical;
}

.box input:focus,
.box select:focus,
.box textarea:focus {
    border-color: #f26b38;
}

.center {
    text-align: center;

    margin-top: 20px;

    font-size: 14px;

    color: #627d98;
}

.center a {
    color: #f26b38;

    font-weight: bold;
}

.message {
    color: #d92d20;

    font-size: 14px;

    margin: 5px 0 12px;
}


/* =========================
   DASHBOARD
========================= */

.dashboard {
    max-width: 1200px;

    margin: auto;

    padding: 50px 6%;
}

.dashboard h1 {
    margin-bottom: 10px;
}

.dashboard-card {
    background: white;

    padding: 25px;

    margin-top: 20px;

    border-radius: 12px;

    border: 1px solid #e6e8ec;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.04);
}


/* =========================
   DASHBOARD STATS
========================= */

#customerStats,
#providerStats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin: 25px 0;
}

#customerStats > div,
#providerStats > div {
    background: white;

    padding: 20px;

    border-radius: 12px;

    border: 1px solid #e6e8ec;

    text-align: center;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.04);
}

#customerStats b,
#providerStats b {
    display: block;

    font-size: 28px;

    color: #f26b38;
}

#customerStats span,
#providerStats span {
    color: #627d98;

    font-size: 13px;
}


/* =========================
   BOOKING CARDS
========================= */

.booking {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;

    margin-bottom: 18px;
}

.booking:last-child {
    margin-bottom: 0;
}

.actions {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


/* =========================
   STATUS
========================= */

.status {
    display: inline-block;

    padding: 6px 13px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;

    margin-top: 10px;
}

.status.pending {
    background: #fff4cc;

    color: #946200;
}

.status.accepted {
    background: #e1f5fe;

    color: #0277bd;
}

.status.in-progress {
    background: #eee8ff;

    color: #673ab7;
}

.status.completed {
    background: #e4f7ec;

    color: #16804b;
}

.status.rejected {
    background: #fde8e7;

    color: #d92d20;
}


/* =========================
   DANGER BUTTON
========================= */

.danger {
    background: #d92d20;

    color: white;

    border: none;

    padding: 12px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.2s;
}

.danger:hover {
    background: #b42318;
}


/* =========================
   LOGOUT BUTTON
========================= */

.logout-btn {
    background: #102a43;

    color: white;

    border: none;

    padding: 10px 18px;

    border-radius: 7px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.2s;
}

.logout-btn:hover {
    background: #d92d20;
}


/* =========================
   REVIEW
========================= */

.review {
    margin-top: 18px;

    padding: 15px;

    background: #f8f9fc;

    border-radius: 10px;

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.review select,
.review input {
    padding: 10px;

    border: 1px solid #d9e2ec;

    border-radius: 7px;

    outline: none;

    background: white;
}

.review input {
    flex: 1;

    min-width: 180px;
}

.review select:focus,
.review input:focus {
    border-color: #f26b38;
}

.success {
    color: #16804b;

    font-weight: bold;

    margin-top: 12px;
}


/* =========================
   EMPTY MESSAGE
========================= */

.empty {
    background: white;

    padding: 30px;

    border-radius: 12px;

    text-align: center;

    color: #627d98;

    border: 1px solid #e6e8ec;
}

.empty a {
    color: #f26b38;

    font-weight: bold;
}


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

@media (max-width: 950px) {

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 12px;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-slider {
        height: 350px;
    }

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

    .detail-card {
        gap: 25px;
    }

    .detail-image {
        width: 380px;
    }
}


/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 750px) {

    header {
        flex-direction: column;

        gap: 15px;
    }

    nav {
        flex-wrap: wrap;

        justify-content: center;
    }

    .hero {
        padding: 45px 5%;
    }

    .hero-container {
        flex-direction: column;
    }

    .hero-text {
        max-width: 100%;

        text-align: center;
    }

    .hero-text h1 {
        font-size: 45px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-slider {
        width: 100%;

        max-width: 600px;

        height: 350px;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        width: 100%;
    }

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

    footer {
        flex-direction: column;

        text-align: center;
    }

    /* DETAILS */

    .detail-card {
        flex-direction: column;

        align-items: stretch;

        padding: 22px;
    }

    .detail-image {
        width: 100%;

        height: 300px;
    }

    .detail-content h1 {
        font-size: 34px;
    }

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

    /* DASHBOARD */

    #customerStats,
    #providerStats {
        grid-template-columns: 1fr;
    }

    .booking {
        flex-direction: column;

        align-items: stretch;
    }

    .actions {
        width: 100%;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 450px) {

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .hero-buttons .btn,
    .hero-buttons .outline-btn {
        width: 100%;

        text-align: center;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-info {
        left: 20px;

        bottom: 30px;
    }

    .slide-info h2 {
        font-size: 24px;
    }

    .detail-image {
        height: 220px;
    }

    .detail-content h1 {
        font-size: 28px;
    }

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

    .review {
        flex-direction: column;
    }

    .review input,
    .review select,
    .review button {
        width: 100%;
    }
}