/* Cyber Protection Form Styles */

.cyber-protection-form-section {
    padding: 60px 0;
    background: #fff;
}

.cyber-protection-form-section .form-header {
    text-align: center;
    margin-bottom: 40px;
}

.cyber-protection-form-section .form-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

.cyber-protection-form-section .text-red {
    color: #e11b22;
}

.cyber-protection-form-section .form-content {
    max-width: 1200px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cyber-protection-form-section .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
    margin-bottom: 30px;
}

/* Left Column Fields */
.cyber-protection-form-section .form-field[data-field="OrganizationName"],
.cyber-protection-form-section .form-field[data-field="Industry"],
.cyber-protection-form-section .form-field[data-field="RevenueBand"],
.cyber-protection-form-section .form-field[data-field="CompanyWebsite"],
.cyber-protection-form-section .form-field[data-field="Country"] {
    grid-column: 1;
}

/* Right Column Fields */
.cyber-protection-form-section .form-field[data-field="YourName"],
.cyber-protection-form-section .form-field[data-field="Name"],
.cyber-protection-form-section .form-field[data-field="YourEmail"],
.cyber-protection-form-section .form-field[data-field="Email"],
.cyber-protection-form-section .form-field[data-field="YourRole"],
.cyber-protection-form-section .form-field[data-field="Role"] {
    grid-column: 2;
}

/* Consent field in same row as Company Website */
.cyber-protection-form-section .form-field[data-field="ConsentAgreement"] {
    grid-column: 2;
    grid-row: 4;
}

/* Second form step - Two independent columns with flexbox */
.cyber-protection-form-section .form-step[data-step="2"] .form-grid {
    display: flex;
    gap: 40px;
}

/* Left column container */
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-column-left,
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-column-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Reduce space below 2nd question in left column */
.cyber-protection-form-section .form-step[data-step="2"] .form-column-left .form-field:nth-child(2) {
    margin-bottom: -12px;
}

/* Reduce space below 1st question in right column (which is question 6 overall) */
.cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(1) {
    margin-bottom: -12px;
}

/* Control question 7 checkbox spacing */
.cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(2) .checkbox-group {
    gap: 16px;
}

/* Remove gap for 2nd row of checkboxes (items 4, 5, 6) */
.cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(2) .checkbox-label:nth-child(4),
.cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(2) .checkbox-label:nth-child(5),
.cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(2) .checkbox-label:nth-child(6) {
    margin-top: -16px;
}

/* Ensure all checkboxes have consistent size */
.cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(2) .checkbox-label {
    display: flex;
    align-items: flex-start;
}

.cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(2) .checkbox-input {
    min-width: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-right: 8px;
    margin-top: 2px;
}

/* Comment textarea full width */
.cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(3) {
    width: 100%;
}

.cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(3) .form-textarea,
.cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(3) textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Legacy grid positioning - keep for backward compatibility but override with flexbox */
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(1),
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(2),
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(3),
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(4),
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(5) {
    grid-column: 1;
    align-self: start;
}

.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(2) {
    margin-bottom: -12px;
}

.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(6) {
    margin-bottom: -12px;
}

.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(6),
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(7),
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(8) {
    grid-column: 2;
    align-self: start;
}

.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(7) .checkbox-group {
    gap: 8px;
}

.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(1) { grid-row: 1; }
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(2) { grid-row: 2; }
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(3) { grid-row: 3; }
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(4) { grid-row: 4; }
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(5) { grid-row: 5; }
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(6) { grid-row: 1; }
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(7) { grid-row: 2; }
.cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-field:nth-child(8) { grid-row: 3; }

.cyber-protection-form-section .form-field {
    display: flex;
    flex-direction: column;
}

.cyber-protection-form-section .form-field-full {
    grid-column: 1 / -1;
}

.cyber-protection-form-section .form-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d373e;
    margin-bottom: 8px;
    font-style: italic;
}

.cyber-protection-form-section .form-input,
.cyber-protection-form-section .form-select,
.cyber-protection-form-section .form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.cyber-protection-form-section .form-input:focus,
.cyber-protection-form-section .form-select:focus,
.cyber-protection-form-section .form-textarea:focus {
    outline: none;
    border-color: #e11b22;
}

.cyber-protection-form-section .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4 0L6 4.6L10.6 0L12 1.4l-6 6l-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.cyber-protection-form-section .checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cyber-protection-form-section .checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.cyber-protection-form-section .checkbox-input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cyber-protection-form-section .form-field-consent {
    padding: 0;
    background: transparent !important;
    border-radius: 0;
}

.cyber-protection-form-section .consent-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.cyber-protection-form-section .consent-label span {
    white-space: nowrap;
}

    .cyber-protection-form-section .consent-label a {
        color: #7f7f7f;
        text-decoration: none;
    }

.cyber-protection-form-section .error-message {
    color: #e11b22;
    font-size: 13px;
    margin-top: 6px;
}

.cyber-protection-form-section .form-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.cyber-protection-form-section .btn {
    padding: 14px 60px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.cyber-protection-form-section .btn-primary {
    background: #e11b22;
    color: #fff;
}

.cyber-protection-form-section .btn-primary:hover {
    background: #c01319;
}

.cyber-protection-form-section .form-success-message {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #4CAF50;
}

.cyber-protection-form-section .aon-logo {
    text-align: left;
    margin-top: 40px;
}

.cyber-protection-form-section .aon-logo img {
    height: 40px;
}

@media (max-width: 768px) {
.cyber-protection-form-section {
    padding: 30px 0;
    overflow-x: hidden;
}

.cyber-protection-form-section .form-content {
    width: 100%;
    max-width: 100%;
    padding: 20px 16px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.cyber-protection-form-section .form-field {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cyber-protection-form-section .form-input,
.cyber-protection-form-section .form-select,
.cyber-protection-form-section .form-textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.cyber-protection-form-section .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Reset all explicit grid-column placements so fields stack in one column */
    .cyber-protection-form-section .form-field[data-field="OrganizationName"],
    .cyber-protection-form-section .form-field[data-field="Industry"],
    .cyber-protection-form-section .form-field[data-field="RevenueBand"],
    .cyber-protection-form-section .form-field[data-field="CompanyWebsite"],
    .cyber-protection-form-section .form-field[data-field="Country"],
    .cyber-protection-form-section .form-field[data-field="YourName"],
    .cyber-protection-form-section .form-field[data-field="Name"],
    .cyber-protection-form-section .form-field[data-field="YourEmail"],
    .cyber-protection-form-section .form-field[data-field="Email"],
    .cyber-protection-form-section .form-field[data-field="YourRole"],
    .cyber-protection-form-section .form-field[data-field="Role"],
    .cyber-protection-form-section .form-field[data-field="ConsentAgreement"] {
        grid-column: 1;
        grid-row: auto;
    }

    /* Step 2: collapse flex columns to a single stacked column */
    .cyber-protection-form-section .form-step[data-step="2"] .form-grid {
        flex-direction: column;
        gap: 20px;
    }

    .cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-column-left,
    .cyber-protection-form-section .form-step[data-step="2"] .form-grid .form-column-right {
        width: 100%;
    }

    /* Restore normal spacing overridden for desktop alignment */
    .cyber-protection-form-section .form-step[data-step="2"] .form-column-left .form-field:nth-child(2),
    .cyber-protection-form-section .form-step[data-step="2"] .form-column-right .form-field:nth-child(1) {
        margin-bottom: 0;
    }

    .cyber-protection-form-section .form-title {
        font-size: 28px;
    }

    .cyber-protection-form-section .checkbox-group {
        grid-template-columns: 1fr;
    }

    .cyber-protection-form-section .consent-label,
    .cyber-protection-form-section .consent-label span {
        white-space: normal;
    }
}
