/* ===================================
   FRANCHISE CONTACT FORM BLOCK STYLES
   =================================== */

/* WordPress Block Wrapper - Layer 1 (handles WordPress integration) */
.wp-block-acf-atax-franchise-contact-form .franchise-contact-form-section {
    width: 100%;
    max-width: 100vw;
}

/* Main Section Container - Layer 2 (handles design constraints) */
.franchise-contact-form-section {
    background-color: var(--white);
    width: 100%;
    position: relative;
    padding: 32px 20px 80px 20px; /* Desktop: top 80px, sides 20px, bottom 0px */
    font-family: 'Montserrat', sans-serif;
}

/* Content Container - Layer 3 (handles width constraints) */
.franchise-contact-form-container {
    max-width: 1200px; /* Desktop container width - as requested */
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch; /* Ensure both columns have equal height */
    gap: 93px; 
    padding: 0;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
}

/* Franchise Contact Form Layout */
.franchise-contact-form-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0; /* Allow flex item to shrink */
    font-family: 'Montserrat', sans-serif;
}

.franchise-contact-form-form-right {
    flex: 1; /* Take equal space as content column */
    flex-shrink: 0;
    display: flex; /* Enable flexbox for form stretching */
    align-items: stretch; /* Stretch form to fill container height */
    min-height: 0; /* Allow flex item to shrink */
    font-family: 'Montserrat', sans-serif;
}

/* Mascot above title */
.franchise-contact-form-mascot {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0;
}

.franchise-contact-form-mascot-image {
    max-width: 60px; /* Reasonable mascot size */
    height: auto;
    display: block;
}

/* Franchise Contact Form Typography */
.franchise-contact-form-h1 {
    font-size: 48px; /* Desktop default - main title */
    font-weight: 700;
    line-height: 1.2;
    margin: 0; /* No margin - gap handles spacing */
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.franchise-contact-form-body-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0; /* No margin - gap handles spacing */
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

/* City Name Styling */
.city-name {
    position: relative;
    display: inline-block;
}

.yellow-underline {
    position: absolute;
    bottom: -8px;
    left: -4px;
    right: -4px;
    height: 4px;
    background: var(--yellow-color);
    border-radius: 50px;
    transform: rotate(-1deg);
    z-index: 1;
    display: block;
}

/* Button container */
.franchise-contact-form-button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
}

/* Contact Information Section */
.franchise-contact-form-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    font-family: 'Montserrat', sans-serif;
}

.franchise-contact-form-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.franchise-contact-form-contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.franchise-contact-form-contact-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.franchise-contact-form-address-text,
.franchise-contact-form-hours-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.franchise-contact-form-address-text div,
.franchise-contact-form-hours-text div {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

/* Franchise Contact Form Container */
.franchise-contact-form-form-container {
    width: 100%;
    height: 100%; /* Full height of parent */
    display: flex;
    align-items: stretch; /* Stretch to fill container height */
    background-color: var(--white, #ffffff);
}

/* WPForms styling */
.franchise-contact-form-form-container .wpforms-container {
    width: 100%;
    max-width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.franchise-contact-form-form-container .wpforms-form {
    width: 100%;
}

.franchise-contact-form-form-container .wpforms-field {
    margin-bottom: 0px;
}

.franchise-contact-form-form-container .wpforms-field-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--primary-color, #354477) !important;
    margin-bottom: 8px;
    display: block;
}

.franchise-contact-form-form-container .wpforms-field input,
.franchise-contact-form-form-container .wpforms-field textarea,
.franchise-contact-form-form-container .wpforms-field select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--custom-grey, #d3d3d3);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--primary-color, #354477);
    background-color: var(--white, #ffffff);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.franchise-contact-form-form-container .wpforms-field input::placeholder,
.franchise-contact-form-form-container .wpforms-field textarea::placeholder {
    color: var(--custom-mid-grey, #888888);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.franchise-contact-form-form-container .wpforms-field input:focus,
.franchise-contact-form-form-container .wpforms-field textarea:focus,
.franchise-contact-form-form-container .wpforms-field select:focus {
    outline: none;
    border-color: var(--accent-color, #10A1DC);
    box-shadow: 0 0 0 3px rgba(16, 161, 220, 0.1);
}

.franchise-contact-form-form-container .wpforms-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox styling */
.franchise-contact-form-form-container .wpforms-field-checkbox {
    margin-bottom: 24px;
}

.franchise-contact-form-form-container .wpforms-field-checkbox .wpforms-field-label {
    font-weight: 400;
    font-size: 14px;
    color: var(--primary-color, #354477);
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.franchise-contact-form-form-container .wpforms-field-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Submit button styling */
.franchise-contact-form-form-container .wpforms-submit {
    background-color: var(--primary-color, #354477);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: none;
    letter-spacing: 0.5px;
}

.franchise-contact-form-form-container .wpforms-submit:hover {
    background-color: var(--accent-color, #10A1DC);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(53, 68, 119, 0.3);
}

.franchise-contact-form-form-container .wpforms-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(53, 68, 119, 0.2);
}

/* ===================================
   FRANCHISE CONTACT FORM RESPONSIVE DESIGN - GOLDEN STANDARD
   =================================== */

/* ===================================
   LAPTOP BREAKPOINT (1151px-1600px)
   ===================================
   NO font size changes - same fonts as desktop
   NO layout changes - same layout as desktop
   Only spacing adjustments (gaps, padding)
   =================================== */
@media (max-width: 1600px) {
    .franchise-contact-form-container {
        /* Reduce gaps only - maintain same layout */
        gap: 60px; /* Reduced from 80px */
    }
    
    .franchise-contact-form-content-left {
        /* Adjust max-width for reduced gap */
        max-width: calc(1200px - 561px - 60px - 40px);
    }
}

/* ===================================
   TABLET BREAKPOINT (768px-1150px)
   ===================================
   Columns stack (flex-direction: column)
   Reduced gaps and spacing
   NO font size changes - same fonts as desktop
   Layout transformation happens here
   =================================== */
@media (max-width: 1150px) {
    .franchise-contact-form-section {
        /* Maintain main container spacing control */
        padding: 60px 20px 0px 20px; /* Reduced top padding */
    }
    
    .franchise-contact-form-container {
        /* Stack columns on tablet */
        flex-direction: column;
        gap: 40px; /* Reduced gap between stacked elements */
    }
    
    .franchise-contact-form-content-left {
        /* Full width when stacked */
        max-width: 100%;
        order: 1; /* Content first on tablet */
    }
    
    .franchise-contact-form-form-right {
        /* Adjust form for tablet layout */
        width: 100%;
        max-width: 561px; /* Fixed width instead of CSS variable */
        height: auto;
        order: 2; /* Form second on tablet */
    }
}

/* ===================================
   MOBILE BREAKPOINT (0px-767px)
   ===================================
   Stacked layout maintained
   Reduced padding and spacing
   Main titles only: 48px → 36px for mobile readability
   =================================== */
@media (max-width: 767px) {
    .franchise-contact-form-section {
        /* Mobile main container spacing control */
        padding: 60px 16px 30px 16px; /* Reduced sides, added bottom */
    }
    
    .franchise-contact-form-container {
        /* Maintain stacked layout */
        flex-direction: column;
        gap: 32px; /* Further reduced gap on mobile */
    }
    
    .franchise-contact-form-content-left,
    .franchise-contact-form-form-right {
        /* Full width on mobile */
        max-width: 100%;
    }
    
    /* Main title exception - 48px → 36px for mobile readability */
    .franchise-contact-form-h1 {
        font-size: 36px; /* Mobile title scaling */
    }
}
