/* ==========================================================================
   Wilson Drugs - Contact Us Page Styles
   Clean, Semantic, Responsive Layout
   ========================================================================== */

.wd-contact-page {
    background-color: #ffffff;
}

.wd-contact-container {
    max-width: var(--wd-max-width, 1240px);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.wd-contact-section-title {
    font-family: var(--wd-font-heading, "Beiruti", sans-serif);
    font-size: 40px;
    font-weight: 700;
    line-height: 54px;
    color: var(--wd-primary, #009845);
    text-align: center;
    margin: 0 0 25px 0;
}

/* ==========================================================================
   1. Contact Cards Grid (3 Columns)
   ========================================================================== */
.wd-contact-cards-section {
    padding: 40px 0 20px 0;
}

.wd-contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.wd-contact-card {
    border: 1px solid #38EF7D;
    border-radius: 5px;
    padding: 22px 20px;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.wd-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 152, 69, 0.12);
    border-color: var(--wd-primary, #009845);
}

.wd-contact-card-icon-wrap {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wd-contact-card-icon {
    max-width: 45px;
    max-height: 45px;
    object-fit: contain;
    display: block;
}

.wd-contact-card-body {
    flex-grow: 1;
}

.wd-contact-card-title {
    font-family: var(--wd-font-heading, "Beiruti", sans-serif);
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.wd-contact-card-desc {
    font-family: var(--wd-font-heading, "Beiruti", sans-serif);
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
}

/* ==========================================================================
   2. Google Maps Full Width
   ========================================================================== */
.wd-contact-map-section {
    margin: 25px 0 45px 0;
    width: 100%;
}

.wd-contact-map-wrap {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.wd-contact-map-wrap iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block;
}

/* ==========================================================================
   3. Send Us A Message Form Section
   ========================================================================== */
.wd-contact-form-section {
    padding: 20px 0 70px 0;
}

.wd-contact-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.wd-contact-form-col-img {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    text-align: center;
}

.wd-contact-img-wrap {
    width: 100%;
}

.wd-contact-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.wd-contact-form-col-form {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
}

.wd-contact-form-col-full {
    flex: 0 0 100%;
    max-width: 100%;
}

.wd-contact-form-box {
    width: 100%;
}

.wd-contact-form-box .wd-form-group {
    margin-bottom: 14px;
}

.wd-contact-form-box .wd-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.wd-contact-form-box .wd-form-col {
    flex: 1;
    margin-bottom: 0;
}

.wd-contact-form-box .wd-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #757575;
    border-radius: 2px;
    font-family: var(--wd-font-body, "Roboto", sans-serif);
    font-size: 14px;
    color: #333333;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.wd-contact-form-box .wd-form-control::placeholder {
    color: #757575;
    opacity: 1;
}

.wd-contact-form-box .wd-form-control:focus {
    outline: none;
    border-color: var(--wd-primary, #009845);
}

.wd-contact-form-box .wd-form-textarea {
    min-height: 95px;
    resize: vertical;
}

.wd-contact-form-box .wd-btn-submit-enquiry {
    width: 100%;
    background-color: var(--wd-primary, #009845) !important;
    color: #ffffff !important;
    font-family: var(--wd-font-heading, "Beiruti", sans-serif);
    font-size: 20px;
    font-weight: 700;
    border: none !important;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wd-contact-form-box .wd-btn-submit-enquiry:hover {
    background-color: var(--wd-dark-green, #007a37) !important;
}

.wd-form-alert {
    margin-bottom: 15px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.wd-form-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wd-form-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .wd-contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wd-contact-form-col-img,
    .wd-contact-form-col-form {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .wd-contact-map-wrap {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .wd-contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .wd-contact-section-title {
        font-size: 32px;
        line-height: 40px;
    }

    .wd-contact-form-box .wd-form-row {
        flex-direction: column;
        gap: 14px;
    }

    .wd-contact-map-wrap {
        height: 280px;
    }
}
