/* ========================================
   Contact Page Redesign
   ======================================== */

/* Map fills content width cleanly */

/* Two-column layout */
.redesign-contact-wrapper {
    align-items: flex-start !important;
    gap: 40px;
    margin: 0 auto;
}

/* Left column - form */
.redesign-contact-form {
    flex: 1 1 58%;
    min-width: 0;
}

/* Right column - contact info wrapper */
.redesign-contact-info {
    flex: 0 0 420px;
    min-width: 0;
}

/* Section headings (both columns) */
.redesign-contact-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

/* Hide CF7 redundant form title */
.redesign-contact-form .RedTitle {
    display: none;
}

/* ========================================
   Form Field Overrides per Figma
   ======================================== */

/* Remove max-width constraints so form expands to fill column */
.redesign-contact-form .wp-block-contact-form-7-contact-form-selector {
    max-width: none !important;
}

.redesign-contact-form .ContactForm {
    max-width: none !important;
    width: 100%;
}

/* Remove global padding from the form column */
.redesign-contact-form.has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Form container - white bg with shadow, no rounded corners */
.redesign-contact-form .ContactForm .Form {
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 36px;
    gap: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Individual input cells - straight corners, own borders */
.redesign-contact-form .ContactForm .flex-input {
    border: 1px solid #d1d5db !important;
    border-radius: 0;
    background: #fff;
}

/* Override shared border removal - each field gets its own border */
.redesign-contact-form .ContactForm .flex-column .flex-block:not(:first-child) .flex-input {
    border-left: 1px solid #d1d5db !important;
}

.redesign-contact-form .ContactForm .flex-column:not(:first-child) .flex-input {
    border-top: 1px solid #d1d5db !important;
}

.redesign-contact-form .ContactForm .flex-input.notes-field {
    border-top: 1px solid #d1d5db !important;
}

/* Row gaps */
.redesign-contact-form .ContactForm .flex-column {
    gap: 24px;
}

/* Override submit button to match design (dark teal, straight corners) */
.redesign-contact-form .ContactForm .ContactAction input[type="submit"] {
    background-color: #22424F;
    border-radius: 0;
}

.redesign-contact-form .ContactForm .ContactAction input[type="submit"]:hover {
    background-color: #1a3540;
}

/* ========================================
   Contact Info Card
   ======================================== */
.redesign-contact-card {
    background: #22424F;
    color: #fff;
    border-radius: 16px;
    padding: 36px 32px;
}

.contact-card-company {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px 0;
}

/* Phone buttons - white outlined style per Figma */
.contact-card-phones {
    gap: 12px !important;
    margin-bottom: 28px;
    flex-wrap: wrap !important;
}

.phone-btn {
    margin: 0;
}

.phone-btn a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #22424F;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.phone-btn a:hover {
    background: #fff;
    color: #22424F;
}

.phone-btn a svg {
    flex-shrink: 0;
    color: #22424F;
}

/* Info sections - no divider lines per Figma */
.contact-card-section {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-card-section:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 0;
}

/* Labels - bold white with icon, per Figma */
.contact-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    letter-spacing: 0.01em;
}

.contact-card-label svg {
    flex-shrink: 0;
    color: #fff;
}

.contact-card-value {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    padding-left: 26px;
}

.contact-card-value a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-card-value a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Social icons - proper brand icons per Figma */
.contact-card-social {
    margin-top: 24px;
    padding-top: 0;
    border-top: none;
}

.contact-card-social p {
    margin: 0;
    display: flex;
    gap: 12px;
}

.contact-card-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
}

.contact-card-social .social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.contact-card-social .social-icon svg {
    fill: #fff;
}

/* ========================================
   Directions Button
   ======================================== */
.redesign-contact-map-actions {
    margin-top: 40px;
    margin-bottom: 0;
}

.map-directions-btn {
    margin: 0;
}

.map-directions-btn a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #22424F;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.map-directions-btn a:hover {
    background: #1a3540;
    color: #fff;
}

.map-directions-btn a svg {
    flex-shrink: 0;
    color: #fff;
}

/* ========================================
   Google Maps - full width per design
   ======================================== */
.redesign-contact-map {
    margin-top: 16px;
    overflow: hidden;
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
    border-radius: 0;
}

.redesign-contact-map iframe {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: 450px;
    border-radius: 0;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
    .redesign-contact-wrapper {
        flex-direction: column !important;
        gap: 30px;
    }

    .redesign-contact-info {
        flex: 1 1 100%;
        width: 100%;
    }

    .redesign-contact-form {
        flex: 1 1 100%;
        width: 100%;
    }

    .redesign-contact-map iframe {
        min-height: 300px;
        border-radius: 0;
    }
}

@media (max-width: 600px) {
    .redesign-contact-card {
        padding: 28px 22px;
    }

    .contact-card-phones {
        flex-direction: column !important;
    }

    .phone-btn a {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}
