/**
 * K4 Kitchens Contact Page Template Styles
 * Author:  Steve Austen
 * Company: The PCGP
 * Version: 1.0.0
 */

/* Push content below the fixed header (33px top bar + 80px main header) */
.contact-template {
    margin-top: 113px;
}

/* Account for WordPress admin bar when logged in */
.admin-bar .contact-template {
    margin-top: 145px; /* 113px header + 32px admin bar */
}

/* WordPress admin bar changes at 782px and below to 46px height */
@media screen and (max-width: 782px) {
    .admin-bar .contact-template {
        margin-top: 159px; /* 113px header + 46px admin bar */
    }
}

/* ═══════════════════════════════════════════
   Hero Header
   ═══════════════════════════════════════════ */
.contact-hero {
    background: #231f20;
    padding: 60px 0 50px;
    text-align: center;
}

.contact-header {
    max-width: 700px;
    margin: 0 auto;
}

/* Subtitle (e.g. "Get In Touch") */
.contact-subtitle {
    display: block;
    font-family: "Poppins", sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    color: #f3af2e;
    margin-bottom: 8px;
}

/* Page title */
.contact-title {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.15;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}

/* Intro paragraph */
.contact-intro {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #ccc;
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════
   Main Content: Form + Details
   ═══════════════════════════════════════════ */
.contact-main {
    background: #fff;
    padding: 70px 0;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

/* ── Left Column – Form ── */
.contact-form-col {
    flex: 1 1 55%;
    min-width: 320px;
}

.contact-form-heading {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #231f20;
    margin: 0 0 30px 0;
}

/* Placeholder text when no CF7 shortcode is set */
.contact-form-placeholder {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #999;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

/* ── CF7 Form Styling ── */
.contact-form-wrap label {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #231f20;
    display: block;
    margin-bottom: 6px;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap input[type="url"],
.contact-form-wrap textarea,
.contact-form-wrap select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: #231f20;
    background: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 4px;
    box-sizing: border-box;
}

.contact-form-wrap input[type="text"]:focus,
.contact-form-wrap input[type="email"]:focus,
.contact-form-wrap input[type="tel"]:focus,
.contact-form-wrap input[type="url"]:focus,
.contact-form-wrap textarea:focus,
.contact-form-wrap select:focus {
    outline: none;
    border-color: #f3af2e;
    box-shadow: 0 0 0 3px rgba(243, 175, 46, 0.15);
    background: #fff;
}

.contact-form-wrap textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form-wrap ::placeholder {
    color: #999;
    opacity: 1;
}

/* CF7 paragraph wrappers – add spacing between fields */
.contact-form-wrap .wpcf7-form p {
    margin-bottom: 20px;
}

/* Submit button */
.contact-form-wrap input[type="submit"] {
    background: #f3af2e;
    color: #fff;
    padding: 14px 50px;
    border: none;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-top: 10px;
}

.contact-form-wrap input[type="submit"]:hover {
    background: #e2a027;
    transform: translateY(-2px);
}

.contact-form-wrap input[type="submit"]:active {
    transform: translateY(0);
}

/* CF7 validation messages */
.contact-form-wrap .wpcf7-not-valid-tip {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: #e13232;
    margin-top: 4px;
}

.contact-form-wrap .wpcf7-response-output {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* ── Right Column – Contact Details ── */
.contact-details-col {
    flex: 1 1 35%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Individual detail card */
.contact-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.3s ease;
}

.contact-detail-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Icon circle */
.contact-detail-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #231f20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3af2e;
}

.contact-detail-icon svg {
    width: 24px;
    height: 24px;
}

/* Detail text */
.contact-detail-body h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #231f20;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail-body p {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.contact-detail-link {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: #f3af2e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-detail-link:hover {
    color: #e2a027;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════
   Google Map Section
   ═══════════════════════════════════════════ */
.contact-map-section {
    background: #231f20;
    padding: 0;
}

.contact-map-wrap {
    width: 100%;
    line-height: 0; /* remove inline-block gap */
}

.contact-map-wrap iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* ═══════════════════════════════════════════
   WordPress Editor Content (optional)
   ═══════════════════════════════════════════ */
.contact-editor-section {
    background: #fff;
    padding: 60px 0;
}

.contact-editor-content {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.contact-editor-content h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #231f20;
    margin: 0 0 20px 0;
}

.contact-editor-content h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #231f20;
    margin: 0 0 15px 0;
}

.contact-editor-content p {
    margin-bottom: 18px;
}

.contact-editor-content a {
    color: #f3af2e;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-editor-content a:hover {
    color: #e2a027;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 991px) {
    .contact-row {
        flex-direction: column;
        gap: 50px;
    }

    .contact-form-col,
    .contact-details-col {
        flex: 1 1 100%;
        min-width: 0;
    }

    .contact-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        padding: 40px 0 35px;
    }

    .contact-subtitle {
        font-size: 18px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-intro {
        font-size: 14px;
    }

    .contact-main {
        padding: 40px 0;
    }

    .contact-form-heading {
        font-size: 24px;
    }

    .contact-detail-card {
        padding: 18px;
    }

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

    .contact-editor-section {
        padding: 40px 0;
    }
}
