/* MAXCOVER SMART QUOTE REQUEST FLOW STYLES
   ========================================================= */
.sq-page-container {
    max-width: 1300px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 25px 20px 60px 20px !important;
    box-sizing: border-box !important;
}

.sq-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

/* Key Principles Bar */
.sq-principles-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0, 40, 120, 0.04);
}
.sq-principle-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sq-principle-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e0edff;
    color: #0064e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sq-principle-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.2;
}
.sq-principle-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

/* Card container */
.sq-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Stepper Header */
.sq-stepper-header {
    background: linear-gradient(135deg, #0a254a 0%, #004dc7 50%, #0068f7 100%);
    padding: 18px 28px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.sq-stepper-step-badge {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(4px);
}
.sq-stepper-step-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.sq-progress-track {
    width: 100%;
    height: 5px;
    background: rgba(10, 37, 74, 0.25);
    position: relative;
}
.sq-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #00f2fe);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 33.33%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

/* Step Body */
.sq-step-body {
    padding: 36px 36px 40px;
}
.sq-step-panel {
    display: none;
    animation: sqFadeIn 0.3s ease;
}
.sq-step-panel.active {
    display: block;
}
@keyframes sqFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.sq-step-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.sq-step-heading {
    font-size: 23px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.sq-step-subheading {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
}
.sq-security-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    color: #166534;
    max-width: 320px;
    flex-shrink: 0;
    line-height: 1.35;
}

/* Grids & Fields */
.sq-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
    margin-bottom: 18px;
}
.sq-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}
.sq-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sq-field.full-width {
    grid-column: 1 / -1;
}
.sq-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sq-label .req {
    color: #ef4444;
}
.sq-label .opt {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 4px;
}
.sq-input,
.sq-select,
.sq-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    font-size: 14.5px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}
.sq-input:focus,
.sq-select:focus,
.sq-textarea:focus {
    outline: none;
    border-color: #0064e5;
    box-shadow: 0 0 0 3px rgba(0, 100, 229, 0.15);
}
.sq-input.error,
.sq-select.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}
.sq-error-text {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
    display: none;
    margin-top: 2px;
}
.sq-error-text.show {
    display: block;
}

/* Choice Cards */
.sq-choice-section {
    margin-bottom: 26px;
}
.sq-choice-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.sq-choice-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.sq-choice-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}
.sq-choice-card:hover {
    border-color: #93c5fd;
}
.sq-choice-card.active {
    border-color: #0064e5;
    background: #f0f7ff;
    box-shadow: 0 4px 14px rgba(0, 100, 229, 0.08);
}
.sq-choice-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.sq-choice-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-left: 28px;
}
.sq-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.sq-choice-card.active .sq-radio-dot {
    border-color: #0064e5;
    background: #0064e5;
}
.sq-choice-card.active .sq-radio-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

/* Agent Help Box */
.sq-agent-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}
.sq-agent-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.sq-agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0064e5, #00c6ff);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.sq-agent-msg {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

/* Section Title inside form */
.sq-form-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}
.sq-form-section-title svg {
    color: #0064e5;
}

/* Toggle buttons */
.sq-toggle-group {
    display: inline-flex;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    overflow: hidden;
    width: fit-content;
}
.sq-toggle-btn {
    padding: 9px 22px;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sq-toggle-btn.active {
    background: #0064e5;
    color: #ffffff;
}

/* Dropzone */
.sq-dropzone {
    border: 2px dashed #93c5fd;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    background: #f8faff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sq-dropzone:hover,
.sq-dropzone.dragover {
    border-color: #0064e5;
    background: #eff6ff;
}
.sq-dropzone-icon {
    width: 40px;
    height: 40px;
    color: #0064e5;
    margin: 0 auto 8px;
}
.sq-dropzone-text {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}
.sq-btn-choose {
    display: inline-block;
    padding: 7px 18px;
    background: #ffffff;
    border: 1.5px solid #0064e5;
    color: #0064e5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sq-btn-choose:hover {
    background: #0064e5;
    color: #ffffff;
}
.sq-dropzone-hint {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 8px;
}
.sq-file-preview {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #86efac;
    padding: 10px 16px;
    border-radius: 10px;
    margin-top: 12px;
}
.sq-file-preview.active {
    display: flex;
}
.sq-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #166534;
}
.sq-file-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700;
    padding: 2px 6px;
}

/* Actions Row */
.sq-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.sq-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0064e5 0%, #004bd6 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 100, 229, 0.3);
    text-decoration: none;
}
.sq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 229, 0.4);
    background: linear-gradient(135deg, #0056c7 0%, #003ea8 100%);
}
.sq-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #475569 !important;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.sq-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* Privacy Note */
.sq-privacy-note {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    line-height: 1.4;
}
.sq-privacy-note a {
    color: #0064e5 !important;
    text-decoration: underline !important;
}

/* Success Screen */
.sq-success-wrap {
    text-align: center;
    padding: 24px 16px;
}
.sq-success-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 0 0 8px #f0fdf4;
}
.sq-success-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.sq-success-sub {
    font-size: 15px;
    color: #475569;
    margin-bottom: 20px;
}
.sq-conf-badge {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
}
.sq-next-steps-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    text-align: left;
    max-width: 540px;
    margin: 0 auto 24px;
}
.sq-next-steps-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sq-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sq-step-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.4;
}
.sq-step-list li svg {
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}
.sq-help-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px;
    max-width: 540px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.sq-help-text {
    font-size: 13.5px;
    color: #1e40af;
}
.sq-help-phone {
    font-size: 15px;
    font-weight: 800;
    color: #0064e5 !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .sq-principles-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 14px;
    }
    .sq-step-body {
        padding: 24px 16px;
    }
    .sq-step-top {
        flex-direction: column;
        gap: 12px;
    }
    .sq-security-badge {
        max-width: 100%;
    }
    .sq-grid-2,
    .sq-grid-3,
    .sq-choice-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .sq-actions-row {
        flex-direction: column-reverse;
    }
    .sq-btn-primary,
    .sq-btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Hide obsolete template power panel popup */
#aa-power-panel-container {
    display: none !important;
}

/* ============================================================

/* --------------------------------------------------------------------------
   O tai file that (Dot 3). Input file bi an, ca vung dropzone la label nen
   bam dau cung mo hop chon file va van dieu huong duoc bang ban phim.
   -------------------------------------------------------------------------- */
.sq-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 26px 20px;
    text-align: center;
    cursor: pointer;
    border: 2px dashed #c7d7ee;
    border-radius: 12px;
    background: #f8fbff;
    transition: border-color .2s ease, background-color .2s ease;
}

.sq-dropzone:hover,
.sq-dropzone.is-over {
    border-color: #0064e5;
    background: #eef5ff;
}

.sq-dropzone:focus-within {
    border-color: #0064e5;
    box-shadow: 0 0 0 3px rgba(0, 100, 229, .15);
}

.sq-dropzone.has-file {
    border-style: solid;
    border-color: #16a34a;
    background: #f2fbf5;
}

.sq-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.sq-dropzone-icon {
    color: #0064e5;
    line-height: 0;
}

.sq-dropzone-text {
    font-weight: 700;
    color: #0c1e40;
}

.sq-dropzone-hint {
    font-size: 13px;
    color: #64748b;
}

.sq-dropzone-error {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #b91c1c;
}
