﻿/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f7fbff;
    color: #1d2939;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.medicine-page {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   HEADER
   ========================================================= */

.request-header {
    position: relative;
    padding: 85px 20px;
    background: linear-gradient( 135deg, #eaf8ff 0%, #f8fcff 50%, #eafaf5 100% );
    text-align: center;
    overflow: hidden;
}


    .request-header::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(20, 150, 120, 0.08);
        top: -130px;
        left: -80px;
    }


    .request-header::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        background: rgba(0, 120, 200, 0.07);
        right: -80px;
        bottom: -120px;
    }


.header-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: auto;
}


.small-title {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: white;
    color: #087f5b;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 80, 120, 0.08);
    margin-bottom: 20px;
}


.header-content h1 {
    margin: 0;
    color: #102a43;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
}


    .header-content h1 span {
        color: #087f5b;
    }


.header-content p {
    margin: 20px auto 0;
    max-width: 650px;
    color: #667085;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   STORE SECTION
   ========================================================= */

.store-section {
    padding: 70px 20px;
    background: #f7fbff;
}


.store-container {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}


/* =========================================================
   SHOP CARD
   ========================================================= */

.store-photo-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #dce8f3;
    box-shadow: 0 15px 45px rgba(0, 70, 130, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


    .store-photo-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 22px 55px rgba(0, 70, 130, 0.16);
    }


.shop-image-container {
    width: 100%;
    height: 285px;
    overflow: hidden;
    background: #eef6fb;
}


.shop-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}


.store-photo-card:hover .shop-photo {
    transform: scale(1.06);
}


.photo-caption {
    padding: 25px;
    text-align: center;
}


    .photo-caption h3 {
        margin: 0 0 8px;
        color: #102a43;
        font-size: 22px;
        font-weight: 700;
    }


    .photo-caption p {
        margin: 0 0 12px;
        color: #667085;
        font-size: 14px;
    }


.shop-location {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 30px;
    background: #effaf6;
    color: #087f5b;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   OWNER CARD
   ========================================================= */

.owner-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid #dce8f3;
    box-shadow: 0 15px 45px rgba(0, 70, 130, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


    .owner-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 22px 55px rgba(0, 70, 130, 0.16);
    }


.owner-image-container {
    width: 175px;
    height: 175px;
    margin: 0 auto 22px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef7fc;
    border: 6px solid #e5f4ff;
    box-shadow: 0 8px 25px rgba(0, 100, 150, 0.12);
}


.owner-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.owner-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #087f5b;
    font-weight: 700;
    margin-bottom: 8px;
}


.owner-details h2 {
    margin: 5px 0 8px;
    color: #102a43;
    font-size: 22px;
    line-height: 1.35;
}


.owner-details strong {
    color: #087f5b;
    font-size: 16px;
}


.owner-details p {
    margin: 18px 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}


.owner-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    background: #effaf6;
    color: #087f5b;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}


    .owner-phone:hover {
        background: #087f5b;
        color: white;
        transform: translateY(-2px);
    }


/* =========================================================
   MEDICAL DETAILS - SINGLE BOX
   ========================================================= */

.medical-details-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #dce8f3;
    box-shadow: 0 15px 45px rgba(0, 70, 130, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}


    .medical-details-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 22px 55px rgba(0, 70, 130, 0.16);
    }


/* =========================================================
   MEDICAL CARD HEADER
   ========================================================= */

.medical-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}


.medical-icon {
    width: 65px;
    height: 65px;
    min-width: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #eaf6ff;
    border: 1px solid #d4ecff;
    font-size: 30px;
}


.medical-card-header h2 {
    margin: 0 0 5px;
    color: #102a43;
    font-size: 23px;
    font-weight: 700;
}


.medical-card-header span {
    color: #667085;
    font-size: 13px;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.medical-divider {
    width: 100%;
    height: 1px;
    background: #e8eef5;
    margin-bottom: 5px;
}


/* =========================================================
   MEDICAL DETAIL ROW
   ========================================================= */

.medical-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid #edf2f7;
}


    .medical-detail-row.last-detail {
        border-bottom: none;
        padding-bottom: 0;
    }


.medical-detail-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0f8ff;
    border: 1px solid #e2f0fb;
    font-size: 19px;
}


.medical-detail-content {
    flex: 1;
    min-width: 0;
}


    .medical-detail-content h4 {
        margin: 0 0 5px;
        color: #1d2939;
        font-size: 14px;
        font-weight: 700;
    }


    .medical-detail-content p {
        margin: 0;
        color: #667085;
        font-size: 13px;
        line-height: 1.6;
    }


    .medical-detail-content a {
        color: #087f5b;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        word-break: break-word;
    }


        .medical-detail-content a:hover {
            text-decoration: underline;
            color: #055c42;
        }


    .medical-detail-content strong {
        color: #087f5b;
    }


/* =========================================================
   REQUEST SECTION
   ========================================================= */

.request-section {
    padding: 70px 20px 90px;
    background: linear-gradient( 180deg, #f7fbff 0%, #ffffff 100% );
}


.form-container {
    max-width: 780px;
    margin: auto;
    padding: 40px;
    background: white;
    border-radius: 28px;
    border: 1px solid #dce8f3;
    box-shadow: 0 20px 60px rgba(0, 70, 130, 0.10);
}


/* =========================================================
   FORM HEADING
   ========================================================= */

.form-heading {
    text-align: center;
    margin-bottom: 35px;
}


.form-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: #eaf6ff;
    font-size: 30px;
    margin-bottom: 15px;
}


.form-heading h2 {
    margin: 0 0 10px;
    color: #102a43;
    font-size: 30px;
    font-weight: 800;
}


.form-heading p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    margin-bottom: 23px;
}


    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #344054;
        font-size: 14px;
        font-weight: 700;
    }


        .form-group label span {
            color: #dc2626;
            margin-left: 3px;
        }


/* =========================================================
   FORM CONTROL
   ========================================================= */

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #ffffff;
    color: #1d2939;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .form-control:focus {
        border-color: #087f5b;
        box-shadow: 0 0 0 4px rgba(8, 127, 91, 0.10);
    }


textarea.form-control {
    min-height: 120px;
    resize: vertical;
}


.form-control::placeholder {
    color: #98a2b3;
}


/* =========================================================
   PRESCRIPTION BOX
   ========================================================= */

.prescription-box {
    margin-top: 10px;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 18px;
    border: 1px dashed #9fc8dc;
    background: #f7fcff;
}


.prescription-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
}


.prescription-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf6ff;
    font-size: 23px;
}


.prescription-box h4 {
    margin: 0 0 5px;
    color: #1d2939;
    font-size: 17px;
}


.prescription-box p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}


.prescription-box small {
    display: block;
    margin-top: 8px;
    color: #667085;
    font-size: 12px;
}


/* =========================================================
   VALIDATION
   ========================================================= */

.validation {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: 12px;
}


/* =========================================================
   WHATSAPP BUTTON
   ========================================================= */

.whatsapp-button {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 14px;
    background: #087f5b;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(8, 127, 91, 0.20);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}


    .whatsapp-button:hover {
        background: #066b4c;
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(8, 127, 91, 0.28);
    }


    .whatsapp-button:active {
        transform: translateY(0);
    }


/* =========================================================
   PRIVACY
   ========================================================= */

.privacy-text {
    margin: 15px 0 0;
    text-align: center;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .store-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .medical-details-card {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .request-header {
        padding: 65px 20px;
    }


    .header-content h1 {
        font-size: 36px;
    }


    .header-content p {
        font-size: 15px;
    }


    .store-section {
        padding: 45px 15px;
    }


    .store-container {
        grid-template-columns: 1fr;
        gap: 22px;
    }


    .medical-details-card {
        grid-column: auto;
        padding: 23px;
    }


    .shop-image-container {
        height: 240px;
    }


    .owner-image-container {
        width: 150px;
        height: 150px;
    }


    .form-container {
        padding: 25px 20px;
        border-radius: 22px;
    }


    .request-section {
        padding: 45px 15px 65px;
    }


    .form-heading h2 {
        font-size: 26px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .header-content h1 {
        font-size: 30px;
    }


    .small-title {
        font-size: 12px;
    }


    .medical-card-header h2 {
        font-size: 20px;
    }


    .medical-detail-row {
        gap: 10px;
        padding: 15px 0;
    }


    .medical-detail-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 17px;
    }


    .form-container {
        padding: 22px 16px;
    }


    .prescription-box {
        padding: 18px;
    }
}
