/**
 * V2 Form Analysis Block Styles
 * Responsive two-column layout with form
 */

/* ===================================
   Section Container
   =================================== */
.v2-form-analysis-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.2);
}

.v2-form-analysis-container {
    max-width: 1200px;
    margin: 0 auto;
}

.v2-form-analysis-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

/* ===================================
   Text Color Variations
   =================================== */
.v2-form-analysis-section.text-light {
    color: #ffffff;
}

.v2-form-analysis-section.text-light .v2-form-analysis-heading {
    color: #ffffff;
}

.v2-form-analysis-section.text-light .v2-form-analysis-subheading,
.v2-form-analysis-section.text-light .v2-form-analysis-features-title {
    color: #ffffff;
}

.v2-form-analysis-section.text-dark {
    color: #333333;
}

.v2-form-analysis-section.text-dark .v2-form-analysis-heading {
    color: #1a1a1a;
}

/* ===================================
   Content Column
   =================================== */
.v2-form-analysis-content {
    padding-right: 20px;
}

.v2-form-analysis-heading {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
    max-width: 400px;
}

.v2-form-analysis-subheading {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 40px;
    opacity: 0.95;
}

/* ===================================
   Features Section
   =================================== */
.v2-form-analysis-features {
    margin-top: 40px;
    background-color: #0b3d6d;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #1d4e89;
}

.v2-form-analysis-features-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px;
    color: inherit;
}

.v2-form-analysis-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v2-form-analysis-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
}

.v2-form-analysis-feature-icon {
    color: var(--secondary-clr);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===================================
   Form Column
   =================================== */
.v2-form-analysis-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 20px;
}

.v2-form-analysis-form-inner {
    width: 100%;
}

.v2-form-analysis-form-heading {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 30px;
    text-align: left;
    position: relative;
}

.v2-form-analysis-form-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 35px;
    height: 6px;
    background: var(--secondary-clr, #f59e0b);
    border-radius: 6px;
}
/* Form field styling for Everest Forms */
.v2-form-analysis-form .everest-forms {
    margin: 0;
}

.v2-form-analysis-form .evf-field {
    margin-bottom: 20px;
}

.v2-form-analysis-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.v2-form-analysis-form label abbr {
    color: #ef4444;
    text-decoration: none;
}

.v2-form-analysis-form input[type="text"],
.v2-form-analysis-form input[type="email"],
.v2-form-analysis-form input[type="tel"],
.v2-form-analysis-form input[type="number"],
.v2-form-analysis-form textarea,
.v2-form-analysis-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.v2-form-analysis-form input:focus,
.v2-form-analysis-form textarea:focus,
.v2-form-analysis-form select:focus {
    outline: none;
    border-color: #0a3d62;
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

.v2-form-analysis-form textarea {
    min-height: 100px;
    resize: vertical;
}

.v2-form-analysis-form .evf-field-phone-primary {
    display: flex;
    gap: 10px;
}

.v2-form-analysis-form .evf-field-phone-primary select {
    flex: 0 0 110px;
}

.v2-form-analysis-form .evf-field-phone-primary input {
    flex: 1;
}

/* Checkbox styling */
.v2-form-analysis-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.v2-form-analysis-form .evf-field-checkbox label,
.v2-form-analysis-form .evf-frontend-row label {
    display: inline-flex;
    align-items: flex-start;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.v2-form-analysis-form .evf-field-checkbox a {
    color: #0a3d62;
    text-decoration: underline;
}

/* Math captcha */
.v2-form-analysis-form .evf-field-math-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v2-form-analysis-form .evf-field-math-captcha label {
    margin: 0;
    font-weight: 600;
}

.v2-form-analysis-form .evf-field-math-captcha input {
    max-width: 100px;
}

/* Submit button */
.v2-form-analysis-form button[type="submit"],
.v2-form-analysis-form input[type="submit"] {
    width: auto;
    padding: 14px 40px;
    background: #0a3d62;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.v2-form-analysis-form button[type="submit"]:hover,
.v2-form-analysis-form input[type="submit"]:hover {
    background: #083047;
    transform: translateY(-1px);
}

/* Form placeholder (if Everest Forms not active) */
.v2-form-analysis-form-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* ===================================
   Trust Badges
   =================================== */
.v2-form-analysis-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.v2-form-analysis-section.text-dark .v2-form-analysis-badges {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.v2-form-analysis-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.v2-form-analysis-badge-icon {
    font-size: 36px;
    color: #4ade80;
}

.v2-form-analysis-badge-label {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .v2-form-analysis-section {
        padding: 60px 20px;
    }

    .v2-form-analysis-inner {
        gap: 40px;
    }

    .v2-form-analysis-heading {
        font-size: 36px;
    }

    .v2-form-analysis-form {
        padding: 30px;
        position: static;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    .v2-form-analysis-section {
        padding: 50px 16px;
    }

    .v2-form-analysis-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .v2-form-analysis-content {
        padding-right: 0;
    }

    .v2-form-analysis-heading {
        font-size: 32px;
    }

    .v2-form-analysis-subheading {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .v2-form-analysis-features {
        margin-top: 30px;
    }

    .v2-form-analysis-form {
        padding: 28px 24px;
    }

    .v2-form-analysis-form-heading {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .v2-form-analysis-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding-top: 30px;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .v2-form-analysis-section {
        padding: 40px 16px;
    }

    .v2-form-analysis-heading {
        font-size: 28px;
    }

    .v2-form-analysis-subheading {
        font-size: 15px;
    }

    .v2-form-analysis-features-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .v2-form-analysis-feature-item {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .v2-form-analysis-form {
        padding: 24px 20px;
    }

    .v2-form-analysis-form-heading {
        font-size: 22px;
    }

    .v2-form-analysis-form input[type="text"],
    .v2-form-analysis-form input[type="email"],
    .v2-form-analysis-form input[type="tel"],
    .v2-form-analysis-form textarea,
    .v2-form-analysis-form select {
        padding: 10px 14px;
        font-size: 14px;
    }

    .v2-form-analysis-form button[type="submit"],
    .v2-form-analysis-form input[type="submit"] {
        width: 100%;
        padding: 12px 30px;
    }

    .v2-form-analysis-badges {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .v2-form-analysis-badge {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .v2-form-analysis-badge-icon {
        font-size: 32px;
    }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
    .v2-form-analysis-heading {
        font-size: 24px;
    }

    .v2-form-analysis-form {
        padding: 20px 16px;
    }

    .v2-form-analysis-form-heading {
        font-size: 20px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .v2-form-analysis-section {
        padding: 20px;
        background: #ffffff !important;
        color: #000000 !important;
    }

    .v2-form-analysis-form {
        box-shadow: none;
        border: 1px solid #cccccc;
    }
}
