/* Contact Sections - Enhanced Font Sizes Following Style Guide */

/* Basic CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base font size */
html {
    font-size: 16px;
}

/* ================================================ */
/* CONTACT FORM SECTION WITH BACKGROUND IMAGE */
/* ================================================ */

.marshall-contact-form {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/contact-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 110px 0; /* Increased from 100px for better proportion */
    font-family: 'Lancelot', cursive, serif;
    color: white;
}

.marshall-contact-form-container {
    max-width: 1100px; /* Increased from 1000px */
    margin: 0 auto;
    padding: 0 20px;
}

.marshall-contact-form-content {
    text-align: center;
}

.marshall-contact-form-title {
    font-size: 2.75rem; /* Reduced from 3rem (44px) - matches style guide main titles */
    font-weight: 500;
    margin-bottom: 22px; /* Increased from 20px to match style guide */
    color: white;
}

.marshall-contact-form-subtitle {
    font-size: 1.3125rem; /* Increased from 1.25rem (21px) - matches body text */
    color: white;
    margin-bottom: 55px; /* Increased from 40px to match style guide */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7; /* Improved from 1.6 to match style guide */
}

.marshall-contact-form-wrapper {
    background-color: rgba(92, 167, 219, 0.85);
    padding: 55px; /* Increased from 50px to match style guide spacing */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.marshall-contact-form-field {
    width: 100%;
    padding: 16px 22px; /* Increased from 15px 20px */
    margin-bottom: 22px; /* Increased from 20px to match style guide */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1875rem; /* Increased from 1.125rem (19px) - enhanced readability */
    font-family: 'Lancelot', cursive, serif;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.marshall-contact-form-field:focus {
    outline: none;
    border-color: #5ca7db;
    box-shadow: 0 0 0 3px rgba(92, 167, 219, 0.1);
}

.marshall-contact-form-field::placeholder {
    color: #888;
    font-family: 'Lancelot', cursive, serif;
    font-size: 1.1875rem; /* Increased from 1.125rem (19px) */
}

.marshall-contact-form-textarea {
    resize: none;
    min-height: 130px; /* Increased from 120px */
}

.marshall-contact-form-button {
    background-color: #333;
    color: white;
    font-family: 'Lancelot', cursive, serif;
    font-size: 1.1875rem; /* Increased from 1.125rem (19px) - matches button text */
    font-weight: 500;
    padding: 16px 45px; /* Increased from 15px 40px */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(51, 51, 51, 0.3);
    width: 100%;
    min-height: 44px; /* Added for accessibility */
}

.marshall-contact-form-button:hover {
    background-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.4);
}

/* ================================================ */
/* CONTACT INFORMATION SECTION */
/* ================================================ */

.marshall-contact-info {
    background-color: #f8f9fa;
    padding: 90px 0; /* Increased from 80px to match style guide */
    font-family: 'Lancelot', cursive, serif;
}

.marshall-contact-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.marshall-contact-info-main-title {
    color: #333;
    font-size: 2.75rem; /* Increased from 2.625rem (44px) - matches style guide */
    font-weight: 500;
    margin-bottom: 22px; /* Increased from 15px to match style guide */
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.marshall-contact-info-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #5ca7db;
}

.marshall-contact-info-main-subtitle {
    font-size: 1.3125rem; /* Increased from 1.25rem (21px) - matches body text */
    color: #555;
    margin-bottom: 55px; /* Increased from 50px to match style guide */
    max-width: 800px; /* Increased from 700px */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7; /* Improved from 1.6 to match style guide */
    text-align: center;
}

.marshall-contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px; /* Reduced from 40px to match style guide grid spacing */
}

.marshall-contact-info-box {
    background-color: white;
    padding: 38px 28px; /* Increased from 40px 30px to match style guide */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #5ca7db; /* Added to match style guide */
}

.marshall-contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.marshall-contact-info-icon {
    margin-bottom: 22px; /* Increased from 20px to match style guide */
}

.marshall-contact-info-icon i {
    font-size: 45px; /* Increased from 42px to match style guide */
    color: #5ca7db;
}

.marshall-contact-info-title {
    font-size: 1.5625rem; /* Increased from 1.5rem (25px) - matches subtitle hierarchy */
    font-weight: 500;
    color: #333;
    margin-bottom: 22px; /* Increased from 15px to match style guide */
}

.marshall-contact-info-text {
    font-size: 1.25rem; /* Increased from 1.125rem (20px) - extra boost for readability */
    color: #555;
    line-height: 1.6;
}

.marshall-contact-info-text a {
    color: #5ca7db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.marshall-contact-info-text a:hover {
    color: #4a94c4;
    text-decoration: underline;
}

/* ================================================ */
/* INSURANCE POLICIES SECTION */
/* ================================================ */

.marshall-insurance {
    background-color: #ffffff;
    padding: 90px 0; /* Increased from 80px to match style guide */
    font-family: 'Lancelot', cursive, serif;
}

.marshall-insurance-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.marshall-insurance-content {
    text-align: center;
}

.marshall-insurance-title {
    color: #333;
    font-size: 2.75rem; /* Increased from 2.625rem (44px) - matches style guide */
    font-weight: 500;
    margin-bottom: 22px; /* Increased from 15px to match style guide */
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.marshall-insurance-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #5ca7db;
}

.marshall-insurance-subtitle {
    font-size: 1.3125rem; /* Increased from 1.25rem (21px) - matches body text */
    color: #555;
    margin-bottom: 55px; /* Increased from 50px to match style guide */
    max-width: 800px; /* Increased from 700px */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7; /* Improved from 1.6 to match style guide */
}

.marshall-insurance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px; /* Reduced from 40px to match style guide grid spacing */
    max-width: 1000px;
    margin: 0 auto;
}

.marshall-insurance-item {
    background-color: #f8f9fa;
    padding: 38px 28px; /* Reduced from 40px 30px to match style guide */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #5ca7db; /* Added to match style guide */
}

.marshall-insurance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.marshall-insurance-logo {
    margin-bottom: 28px; /* Increased from 25px to match style guide */
}

.marshall-insurance-logo img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.marshall-insurance-item:hover .marshall-insurance-logo img {
    filter: grayscale(0%);
}

.marshall-insurance-policy-title {
    font-size: 1.5625rem; /* Increased from 1.5rem (25px) - matches subtitle hierarchy */
    font-weight: 500;
    color: #333;
    margin-bottom: 22px; /* Increased from 15px to match style guide */
}

.marshall-insurance-policy-description {
    font-size: 1.25rem; /* Increased from 1.125rem (20px) - extra boost for readability */
    color: #555;
    line-height: 1.6;
}

/* ================================================ */
/* GOOGLE MAP SECTION */
/* ================================================ */

.marshall-map {
    background-color: #e8e8e8;
    padding: 0;
}

.marshall-map-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.marshall-map-iframe {
    width: 100%;
    height: 460px; /* Increased from 450px for better proportion */
    border: 0;
    display: block;
}

/* ================================================ */
/* RESPONSIVE BREAKPOINTS */
/* ================================================ */

/* Large Tablet Styles (769px - 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
    .marshall-contact-form {
        padding: 90px 0; /* Increased from 80px to match style guide */
        background-attachment: scroll;
    }
    
    .marshall-contact-info,
    .marshall-insurance {
        padding: 80px 0; /* Increased from 70px to match style guide */
    }
    
    .marshall-contact-form-container {
        max-width: 1000px; /* Increased from 900px */
        padding: 0 30px;
    }
    
    .marshall-contact-info-container,
    .marshall-insurance-container {
        padding: 0 30px;
    }
    
    .marshall-contact-form-title {
        font-size: 2.4875rem; /* Updated to match style guide (39.8px) */
        margin-bottom: 20px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-subtitle {
        font-size: 1.1875rem; /* Updated to match style guide (19px) */
        margin-bottom: 50px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-wrapper {
        padding: 50px; /* Adjusted proportionally */
    }
    
    .marshall-contact-form-field {
        padding: 15px 20px; /* Adjusted proportionally */
        font-size: 1.0625rem; /* Updated to match style guide (17px) */
        margin-bottom: 20px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-field::placeholder {
        font-size: 1.0625rem; /* Updated to match style guide (17px) */
    }
    
    .marshall-contact-form-button {
        font-size: 1.0625rem; /* Updated to match style guide (17px) */
        padding: 15px 40px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-main-title,
    .marshall-insurance-title {
        font-size: 2.4875rem; /* Updated to match style guide (39.8px) */
        margin-bottom: 20px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-main-subtitle,
    .marshall-insurance-subtitle {
        font-size: 1.1875rem; /* Updated to match style guide (19px) */
        margin-bottom: 50px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-grid,
    .marshall-insurance-grid {
        gap: 28px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-box,
    .marshall-insurance-item {
        padding: 35px 25px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-icon {
        margin-bottom: 20px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-icon i {
        font-size: 40px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-title,
    .marshall-insurance-policy-title {
        font-size: 1.4375rem; /* Updated to match style guide (23px) */
        margin-bottom: 20px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-text,
    .marshall-insurance-policy-description {
        font-size: 1.125rem; /* Updated to match style guide (18px) */
    }
    
    .marshall-insurance-logo {
        margin-bottom: 25px; /* Adjusted proportionally */
    }
    
    .marshall-map-iframe {
        height: 420px; /* Adjusted proportionally */
    }
}

/* Small Tablet Styles (481px - 768px) */
@media (max-width: 768px) {
    .marshall-contact-form {
        padding: 80px 0; /* Increased from 70px to match style guide */
        background-attachment: scroll;
    }
    
    .marshall-contact-info,
    .marshall-insurance {
        padding: 70px 0; /* Increased from 60px to match style guide */
    }
    
    .marshall-contact-form-container {
        max-width: 900px; /* Increased from 800px */
        padding: 0 20px;
    }
    
    .marshall-contact-info-container,
    .marshall-insurance-container {
        padding: 0 20px;
    }
    
    .marshall-contact-form-title {
        font-size: 2.25rem; /* Updated to match style guide (36px) */
        margin-bottom: 18px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-subtitle {
        font-size: 1.0625rem; /* Updated to match style guide (17px) */
        margin-bottom: 45px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-wrapper {
        padding: 40px; /* Adjusted proportionally */
    }
    
    .marshall-contact-form-field {
        padding: 14px 18px; /* Adjusted proportionally */
        font-size: 1rem; /* Updated to match style guide (16px) */
        margin-bottom: 20px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-field::placeholder {
        font-size: 1rem; /* Updated to match style guide (16px) */
    }
    
    .marshall-contact-form-button {
        font-size: 1rem; /* Updated to match style guide (16px) */
        padding: 15px 32px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-main-title,
    .marshall-insurance-title {
        font-size: 2.25rem; /* Updated to match style guide (36px) */
        margin-bottom: 38px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-main-subtitle,
    .marshall-insurance-subtitle {
        font-size: 1.0625rem; /* Updated to match style guide (17px) */
        margin-bottom: 45px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-grid {
        grid-template-columns: 1fr;
        gap: 28px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-box {
        padding: 32px 22px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-icon {
        margin-bottom: 20px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-icon i {
        font-size: 38px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-title {
        font-size: 1.3125rem; /* Updated to match style guide (21px) */
        margin-bottom: 20px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-text {
        font-size: 1rem; /* Updated to match style guide (16px) */
    }
    
    .marshall-insurance-grid {
        grid-template-columns: 1fr;
        gap: 28px; /* Adjusted to match style guide */
    }
    
    .marshall-insurance-item {
        padding: 32px 22px; /* Adjusted to match style guide */
    }
    
    .marshall-insurance-policy-title {
        font-size: 1.3125rem; /* Updated to match style guide (21px) */
        margin-bottom: 20px; /* Adjusted to match style guide */
    }
    
    .marshall-insurance-policy-description {
        font-size: 1rem; /* Updated to match style guide (16px) */
    }
    
    .marshall-insurance-logo {
        margin-bottom: 22px; /* Adjusted to match style guide */
    }
    
    .marshall-map-iframe {
        height: 390px; /* Adjusted to match style guide proportions */
    }
}

/* Mobile Styles (≤ 480px) */
@media (max-width: 480px) {
    .marshall-contact-form {
        padding: 70px 0; /* Increased from 60px to match style guide */
        background-attachment: scroll;
    }
    
    .marshall-contact-info,
    .marshall-insurance {
        padding: 60px 0; /* Increased from 50px to match style guide */
    }
    
    .marshall-contact-form-container {
        max-width: 800px; /* Increased from 700px */
        padding: 0 20px; /* Increased from 15px to match style guide */
    }
    
    .marshall-contact-info-container,
    .marshall-insurance-container {
        padding: 0 20px; /* Increased from 15px to match style guide */
    }
    
    .marshall-contact-form-title {
        font-size: 2.125rem; /* Updated to match style guide (34px) */
        margin-bottom: 18px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-subtitle {
        font-size: 1.03125rem; /* Updated to match style guide (16.5px) */
        margin-bottom: 40px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-wrapper {
        padding: 35px 30px; /* Adjusted proportionally */
    }
    
    .marshall-contact-form-field {
        padding: 14px 18px; /* Adjusted proportionally */
        margin-bottom: 18px; /* Adjusted to match style guide */
        font-size: 0.96875rem; /* Updated to match style guide (15.5px) */
    }
    
    .marshall-contact-form-field::placeholder {
        font-size: 0.96875rem; /* Updated to match style guide (15.5px) */
    }
    
    .marshall-contact-form-textarea {
        min-height: 110px; /* Adjusted proportionally */
    }
    
    .marshall-contact-form-button {
        font-size: 0.96875rem; /* Updated to match style guide (15.5px) */
        padding: 15px 30px; /* Adjusted to match style guide */
        min-height: 44px; /* Ensure proper touch target */
    }
    
    .marshall-contact-info-main-title,
    .marshall-insurance-title {
        font-size: 2.125rem; /* Updated to match style guide (34px) */
        margin-bottom: 35px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-main-subtitle,
    .marshall-insurance-subtitle {
        font-size: 1.03125rem; /* Updated to match style guide (16.5px) */
        margin-bottom: 40px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-box {
        padding: 28px 20px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-icon {
        margin-bottom: 18px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-icon i {
        font-size: 35px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-title {
        font-size: 1.1875rem; /* Updated to match style guide (19px) */
        margin-bottom: 18px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-text {
        font-size: 0.96875rem; /* Updated to match style guide (15.5px) */
    }
    
    .marshall-insurance-item {
        padding: 28px 20px; /* Adjusted to match style guide */
    }
    
    .marshall-insurance-logo img {
        max-width: 120px;
    }
    
    .marshall-insurance-logo {
        margin-bottom: 25px; /* Adjusted to match style guide */
    }
    
    .marshall-insurance-policy-title {
        font-size: 1.1875rem; /* Updated to match style guide (19px) */
        margin-bottom: 18px; /* Adjusted to match style guide */
    }
    
    .marshall-insurance-policy-description {
        font-size: 0.96875rem; /* Updated to match style guide (15.5px) */
    }
    
    .marshall-map-iframe {
        height: 360px; /* Adjusted to match style guide proportions */
    }
}

/* Extra Small Mobile (≤ 360px) */
@media (max-width: 360px) {
    .marshall-contact-form-container,
    .marshall-contact-info-container,
    .marshall-insurance-container {
        padding: 0 18px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-title {
        font-size: 2rem; /* Updated to match style guide (32px) */
        margin-bottom: 15px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-subtitle {
        font-size: 0.96875rem; /* Updated to match style guide (15.5px) */
        margin-bottom: 35px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-form-wrapper {
        padding: 30px 25px; /* Adjusted proportionally */
    }
    
    .marshall-contact-form-field {
        font-size: 0.90625rem; /* Updated to match style guide (14.5px) */
        padding: 13px 16px; /* Adjusted proportionally */
    }
    
    .marshall-contact-form-field::placeholder {
        font-size: 0.90625rem; /* Updated to match style guide (14.5px) */
    }
    
    .marshall-contact-form-button {
        font-size: 0.90625rem; /* Updated to match style guide (14.5px) */
        padding: 14px 26px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-main-title,
    .marshall-insurance-title {
        font-size: 2rem; /* Updated to match style guide (32px) */
        margin-bottom: 30px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-main-subtitle,
    .marshall-insurance-subtitle {
        font-size: 0.96875rem; /* Updated to match style guide (15.5px) */
        margin-bottom: 35px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-box {
        padding: 25px 18px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-icon {
        margin-bottom: 15px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-icon i {
        font-size: 30px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-title {
        font-size: 1.0625rem; /* Updated to match style guide (17px) */
        margin-bottom: 15px; /* Adjusted to match style guide */
    }
    
    .marshall-contact-info-text {
        font-size: 0.90625rem; /* Updated to match style guide (14.5px) */
    }
    
    .marshall-insurance-item {
        padding: 25px 18px; /* Adjusted to match style guide */
    }
    
    .marshall-insurance-logo {
        margin-bottom: 22px; /* Adjusted to match style guide */
    }
    
    .marshall-insurance-policy-title {
        font-size: 1.0625rem; /* Updated to match style guide (17px) */
        margin-bottom: 15px; /* Adjusted to match style guide */
    }
    
    .marshall-insurance-policy-description {
        font-size: 0.90625rem; /* Updated to match style guide (14.5px) */
    }
    
    .marshall-map-iframe {
        height: 330px; /* Adjusted to match style guide proportions */
    }
}