html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
}

.Page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    box-sizing: border-box;
}

/* ── Step Progress Indicator ── */
.step-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 860px;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 36px;
    height: 66px;
    /* cursor: pointer; */
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background-color: #eab308;
    color: #fff;
}

.step-item.completed .step-circle {
    background-color: #1a3e6e;
    color: #fff;
}

.step-item.completed .step-circle::before {
    content: '✓';
    font-size: 0.95rem;
    font-weight: 700;
    margin-right: 1px;
}

.step-label {
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.step-item.active .step-label {
    color: #eab308;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #1a3e6e;
}

.step-connector {
    flex: 1;
    height: 3px;
    background-color: #e0e0e0;
    margin-top: 17px;
    transition: background-color 0.3s ease;
}

.step-connector.completed {
    background-color: #1a3e6e;
}

/* ── Form Card ── */
.Producer_Details_Box {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    padding: 25px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
    box-sizing: border-box;
    display: none;
}

.Producer_Details_Box.active {
    display: block;
}

/* ── Section Title ── */
.Producer_Details_Text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #eab308;
    margin-bottom: 20px;
}

/* ── Grid Layouts ── */
.Address_subform,
.Contact_subform {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    column-gap: 1.5rem;
    row-gap: 0.6rem;
    align-items: start; /* here it was set to end this was causing the issue*/
}

/* ── Label + Input Wrapper ── */
.label_input {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Checkbox label input*/
.label_input_checkbox {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    /* align-items: center; */
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 8%;
}

.label_input_checkbox input[type="checkbox"]:hover {
    cursor: pointer;
    size: 2px;
}

/* .label_input_checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    border: none;
} */

/* ── Inputs (underline style) ── */
input,
textarea {
    box-sizing: border-box;
    height: 20px;
    border: none;
    border-bottom: 1.5px solid #d1d5db;
    border-radius: 0;
    width: 100%;
    padding: 2px 2px;
    font-size: 0.7rem;
    background-color: transparent;
    transition: border-color 0.2s ease;
    font-family: inherit;
    color: #333;
}

textarea {
    min-height: 120px;
    height: auto;
    resize: vertical;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    padding: 10px 12px;
}

input:hover,
textarea:hover {
    border-color: #eab308;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #eab308;
    background-color: transparent;
    box-shadow: none;
}

input::placeholder,
textarea::placeholder {
    color: #b0b0b0;
    font-weight: 400;
}

/* ── Inputs Container ── */
.Inputs {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.required {
    color: #ef4444;
}

/* ── Policy Coverage Sections ── */
.Producer_Details_Box .Sub_Section {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0 24px;
}

.Producer_Details_Box .Sub_Section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.Producer_Details_Box .Sub_Section > .Sub_Section_Title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    margin-bottom: 14px;
    margin-top: 0;
    padding-top: 0;
}

/* ── Sub Section Title ── */
.Sub_Section_Title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 8px;
    /* border-top: 1px solid #eab308; */
    padding-top: 12px;
    color: #444;
}

/* ── Form ── */
form {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

/* ── Navigation Buttons ── */
#acord25Form .navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center !important;
    width: 100%;
    max-width: 900px;
    margin-top: 24px;
}

#backBtn,
#nextBtn,
#submitBtn {
    padding: 10px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    outline: none;
}

#backBtn {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #d1d5db;
}

#backBtn:hover {
    background-color: #f3f4f6;
}

#nextBtn {
    margin-left: auto;
    background-color: #eab308;
    color: #1a1a1a;
}

#nextBtn:hover {
    background-color: #ca8a04;
}

#submitBtn {
    margin-left: auto;
    background-color: #eab308;
    color: #1a1a1a;
}

#submitBtn:hover {
    background-color: #ca8a04;
}

/* ── Review Page Styles ── */
.review-section {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 12px;
}

.review-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a3e6e;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a3e6e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-edit-btn {
    background-color: transparent;
    color: #eab308;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    /* text-decoration: underline; */
    padding: 0;
}

.review-edit-btn:hover {
    background-color: #ffffff;
    color: #1a3e6e;
}

.review-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 1.5rem;
    row-gap: 10px;
    margin-bottom: 8px;
}

.review-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-field-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #1a1a1a;
}

.review-field-value {
    font-size: 0.75rem;
    color: #333;
    word-break: break-word;
}

/* ── PDF Viewer Styles ── */
.pdf-viewer-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-header h2 {
    margin: 0;
    color: #333;
    flex: 1;
    min-width: 200px;
}

.download-btn,
.back-to-form-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.download-btn {
    background-color: #007bff;
    color: white;
}

.download-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.back-to-form-btn {
    background-color: #6c757d;
    color: white;
}

.back-to-form-btn:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.pdf-viewer-wrapper {
    width: 100%;
    aspect-ratio: 8.5 / 11;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-footer {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 10px;
}

@media (max-width: 768px) {
    .pdf-header {
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-header h2 {
        text-align: center;
    }

    .download-btn,
    .back-to-form-btn {
        width: 100%;
        justify-content: center;
    }

    .pdf-viewer-wrapper {
        aspect-ratio: auto;
        min-height: 600px;
    }
}

.heading{
    
    /* position: sticky; */
    top: 0;
    background: #ffc107;
    padding:10px;
    padding-top:15px;
    z-index: 100;
    margin-bottom: 2%;
    min-width: 65%;
    border-radius: 4px;
}

.center{
  text-align: center;
  font-size: x-large;
}

.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loader-overlay.active {
    display: flex;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top-color: #ffc107;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.validation-error {
    border-color: #ef4444 !important;
    background-color: #fee2e2 !important;
}

/* ── Login Modal ── */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay.active {
    display: flex;
}

.login-modal {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-modal .loginOptionsButton .btn {
    white-space: nowrap;
    padding: 8px 16px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

/* ── Searchable Dropdown (Insurance Carrier) ── */
.carrier-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.carrier-dropdown-wrapper input {
    width: 100%;
}

.carrier-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carrier-dropdown-list.open {
    display: block;
}

.carrier-dropdown-item {
    padding: 6px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    color: #333;
}

.carrier-dropdown-item:hover {
    background-color: #fff8e1;
    color: #333;
}

.carrier-dropdown-item.no-results {
    color: #888;
    cursor: default;
    font-style: italic;
}

.carrier-dropdown-item.no-results:hover {
    background-color: #fff;
}
