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

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
}

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

.hero {
    display: flex;
    min-height: calc(100vh - 70px);
}

.hero-left {
    width: 50%;
    position: relative;
}

.hero-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-left::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, transparent, #000);
}

.hero-right {
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #000;
    color: #fff;
}

.small-title {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 3px;
}

.hero-right h1 {
    margin-bottom: 15px;
    font-size: 42px;
    line-height: 1.2;
}

.subtitle {
    margin-bottom: 30px;
    color: #ccc;
    font-size: 18px;
    line-height: 1.5;
}

/* =========================
   SERVICE BOX
   ========================= */

.service-box {
    width: 300px;
    max-width: 100%;
    padding: 20px;
    background-color: #fff;
    color: #000;
    border-radius: 5px;
}

.service-box p {
    margin-bottom: 10px;
    font-weight: bold;
}

.service-box select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    outline: none;
}

.service-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-box button,
.message-btn {
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.service-box button:hover,
.message-btn:hover {
    background: #285A48;
}

/* =========================
   SERVICES SECTION
   ========================= */

.services-section {
    padding: 70px 40px;
    background-color: #fff;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-label {
    margin-bottom: 10px;
    color: #666;
    font-size: 12px;
    letter-spacing: 3px;
}

.section-header h2 {
    margin-bottom: 15px;
    color: #111;
    font-size: 34px;
    line-height: 1.2;
}

.section-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.service-card {
    padding: 25px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

.provider-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.provider-top img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.provider-info {
    min-width: 0;
}

.provider-info h3 {
    margin-bottom: 5px;
    color: #111;
    font-size: 20px;
}

.provider-info p {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.rating {
    color: #f4b400;
    font-size: 14px;
    font-weight: bold;
}

.provider-contact {
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

/* =========================
   SERVICE DETAILS
   ========================= */

.service-details p {
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.feedback-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    border-left: 4px solid #000;
    border-radius: 5px;
}

.feedback-box p {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-style: italic;
}

.feedback-box span {
    color: #777;
    font-size: 13px;
}

/* =========================
   MESSAGES
   ========================= */

.flash {
    max-width: 900px;
    margin: 20px auto 0;
    padding: 14px 18px;
    border-radius: 8px;
}

.flash.success {
    background: #d4edda;
    color: #155724;
}

.flash.error {
    background: #f8d7da;
    color: #721c24;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.message-form input,
.message-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

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

.empty-note {
    text-align: center;
    color: #666;
}

/* =========================
   CARD ACTIONS
   ========================= */

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.review-link {
    display: inline-block;
    padding: 10px 14px;
    background: #f3f3f3;
    color: #111;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.review-link:hover,
.review-link.active {
    background: #285A48;
    color: #fff;
}

/* =========================
   REVIEWS
   ========================= */

.review-panel {
    display: none;
    margin-top: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe5df;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(16, 32, 27, 0.08);
}

.review-panel.active {
    display: block;
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fbf9;
    border-bottom: 1px solid #e5ece8;
}

.review-header h3 {
    margin-bottom: 4px;
    color: #111;
    font-size: 19px;
}

.modal-subtitle {
    color: #5b6863;
    font-size: 13px;
    line-height: 1.5;
}

.review-close {
    flex-shrink: 0;
    padding: 7px 10px;
    border: none;
    border-radius: 6px;
    background: #e8eee9;
    color: #285A48;
    cursor: pointer;
    font-weight: 800;
}

.review-close:hover {
    background: #285A48;
    color: #fff;
}

.review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1ef;
}

.review-score {
    color: #111;
    font-size: 32px;
    font-weight: 800;
}

.review-score small {
    color: #6b756f;
    font-size: 15px;
    font-weight: 700;
}

.review-stars {
    color: #f4b400;
    font-weight: 800;
    letter-spacing: 1px;
}

.review-count {
    margin-top: 4px;
    color: #5f6b66;
    font-size: 14px;
}

.review-list {
    display: grid;
    gap: 12px;
    max-height: 320px;
    padding: 16px 18px;
    overflow-y: auto;
}

.review-item {
    padding: 14px;
    background: #fff;
    border: 1px solid #e1e8e4;
    border-radius: 8px;
}

.review-item strong {
    display: block;
    margin-bottom: 4px;
    color: #111;
}

.review-item p {
    margin: 8px 0;
    color: #3f4b46;
    line-height: 1.55;
}

.review-item small {
    color: #78857f;
}

.review-rating {
    margin-bottom: 6px;
    color: #9b6b00;
    font-weight: bold;
}

/* =========================
   NOTIFICATION
   ========================= */

.notif-badge {
    float: right;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;
    padding: 0 6px;
    background: #dc3545;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

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

@media (max-width: 992px) {

    .hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-left {
        height: 350px;
    }

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

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

@media (max-width: 768px) {

    .hero-left {
        height: 300px;
    }

    .hero-right {
        padding: 40px 25px;
    }

    .hero-right h1 {
        font-size: 32px;
    }

    .service-box {
        width: 100%;
    }

    .services-section {
        padding: 50px 20px;
    }

    .section-header {
        margin-bottom: 35px;
    }

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

    .review-header,
    .review-summary {
        padding: 14px;
    }

    .review-summary {
        display: block;
    }

    .review-list {
        max-height: 60vh;
        padding: 14px;
    }
}

/* =========================
   SMALL PHONES
   ========================= */

@media (max-width: 480px) {

    .hero-left {
        height: 240px;
    }

    .hero-right {
        padding: 30px 20px;
    }

    .hero-right h1 {
        font-size: 28px;
    }

    .small-title {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .subtitle {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .service-box {
        padding: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-text {
        font-size: 15px;
    }

    .service-card {
        padding: 20px;
    }

    .provider-top {
        gap: 10px;
    }

    .provider-top img {
        width: 60px;
        height: 60px;
    }

    .provider-info h3 {
        font-size: 17px;
    }

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

    .card-actions > * {
        width: 100%;
    }

    .review-header {
        gap: 10px;
    }

    .review-header h3 {
        font-size: 17px;
    }

    .review-close {
        padding: 6px 8px;
    }
}