/* ==========================================================================
   Marketing Form Block
   Full-width background with contained content, no form boxes
   ========================================================================== */

/* ============================================================
   BASE BLOCK STYLES
   Background extends full viewport, content constrained
   ============================================================ */
.marketing-form-block {
    padding: 80px 0;
    background-color: var(--scheme-bg, #ffffff);
    color: var(--scheme-text, #313A4C);
}

/* Full-bleed background */
.marketing-form-block.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    box-sizing: border-box;
}

.marketing-form__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   SMALL FORM LAYOUT — Side by Side (Desktop)
   Content left, form right, no boxes
   ============================================================ */
.form-size--small .marketing-form__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ============================================================
   LARGE FORM LAYOUT — Stacked
   Content top, form bottom, both centered, no boxes
   ============================================================ */
.form-size--large .marketing-form__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1120px;
}

.form-size--large .marketing-form__content {
    text-align: center;
    width: 100%;
}

.form-size--large .marketing-form__form-wrapper {
    width: 100%;
}

/* ============================================================
   CONTENT AREA — Heading & Text
   ============================================================ */
.marketing-form__heading {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--scheme-text, #313A4C);
}

.marketing-form__text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--scheme-text, #313A4C);
}

.marketing-form__text p {
    margin: 0 0 16px;
}

.marketing-form__text p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   FORM WRAPPER & STYLING
   No box, no border, no shadow — just the form on the background
   ============================================================ */
.marketing-form__form-wrapper {
    position: relative;
}

.marketing-form__form {
    /* No box styling — form sits directly on background */
    /* Height is auto, determined by form content */
}

/* Style form elements from marketing automation tools */
.marketing-form__form input[type="text"],
.marketing-form__form input[type="email"],
.marketing-form__form input[type="tel"],
.marketing-form__form input[type="url"],
.marketing-form__form textarea,
.marketing-form__form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--scheme-border, #E5E5E5);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #ffffff;
    color: #313a4c;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px;
}

.marketing-form__form input[type="text"]:focus,
.marketing-form__form input[type="email"]:focus,
.marketing-form__form input[type="tel"]:focus,
.marketing-form__form input[type="url"]:focus,
.marketing-form__form textarea:focus,
.marketing-form__form select:focus {
    outline: none;
    border-color: var(--scheme-highlight, #BAD532);
    box-shadow: 0 0 0 3px rgba(189, 218, 11, 0.1);
}

.marketing-form__form textarea {
    min-height: 120px;
    resize: vertical;
}

.marketing-form__form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--scheme-text, #313a4c);
    font-size: 0.95rem;
}

/* Submit buttons */
.marketing-form__form button[type="submit"],
.marketing-form__form input[type="submit"] {
    background-color: var(--scheme-button, #BAD532);
    color: var(--scheme-button-text, #313a4c);
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marketing-form__form button[type="submit"]:hover,
.marketing-form__form input[type="submit"]:hover {
    background-color: var(--scheme-button-hover, #313a4c);
    color: var(--scheme-button-text-hover, #BAD532);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Checkboxes and radios */
.marketing-form__form input[type="checkbox"],
.marketing-form__form input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--scheme-highlight, #BAD532);
}

/* Required field indicator */
.marketing-form__form .required,
.marketing-form__form abbr[title="required"] {
    color: #e74c3c;
    text-decoration: none;
}

/* iframes from marketing platforms (HubSpot, Marketo, etc.) */
.marketing-form__form iframe {
    width: 100%;
    border: none;
    display: block;
    /* Height is set by the iframe itself or can be controlled via inline styles */
}

/* Placeholder for empty form */
.marketing-form__placeholder {
    padding: 40px;
    text-align: center;
    border: 2px dashed #707070;
    background: #E5E5E5;
    border-radius: 12px;
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
    .marketing-form-block {
        padding: 60px 0;
    }
    
    /* Stack layout on mobile for BOTH sizes */
    .form-size--small .marketing-form__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-size--small .marketing-form__content {
        text-align: center;
    }
    
    .marketing-form__heading {
        font-size: 2rem;
    }
    
    .marketing-form__text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .marketing-form__heading {
        font-size: 1.75rem;
    }
    
    .marketing-form__container {
        padding: 0 16px;
    }
}
