.form-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px; /* Padding for smaller screens */

    flex-direction: column;
}

.form-container {
    background-color: var(--white-color);
    padding: 30px 25px; /* Adjusted padding */
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
}

.form-logo {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.4em;
    font-weight: 700;
}

/* Stepper */
.stepper {
    display: flex;
    align-items: flex-start; /* Align items to the top for label wrapping */
    justify-content: space-between;
    margin-bottom: 35px;
    padding: 0 5px; /* Small padding for alignment */
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--stepper-label-color);
    transition: all 0.3s ease;
    flex: 0 1 auto; /* Allow shrinking but not growing beyond content */
    min-width: 60px; /* Minimum width for each step */
}
.step-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--stepper-icon-bg);
    color: var(--stepper-icon-text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-bottom: 8px;
    border: 3px solid var(--stepper-icon-bg);
    transition: all 0.4s ease;
    position: relative;
}
.step-number {
    display: block;
    transition: opacity 0.3s;
    font-size: 1.1em;
}
.step-check {
    display: none;
    font-size: 1.3em;
    transition: opacity 0.3s;
}

.step-label {
    font-size: 0.88em;
    font-weight: 500;
    line-height: 1.3;
    color: var(--stepper-label-color);
}

.step.active .step-icon-wrapper {
    background-color: var(--stepper-icon-active-bg);
    border-color: var(--stepper-icon-active-bg);
}
.step.active .step-label {
    color: var(--stepper-label-active-color);
    font-weight: 700;
}

.step.completed .step-icon-wrapper {
    background-color: var(--stepper-icon-completed-bg);
    border-color: var(--stepper-icon-completed-bg);
}
.step.completed .step-number {
    display: none;
}
.step.completed .step-check {
    display: block;
}
.step.completed .step-label {
    color: var(--stepper-label-completed-color);
    font-weight: 500; /* Can be normal weight once completed */
}

.step-line {
    flex-grow: 1;
    height: 3px;
    background-color: var(--stepper-line-bg);
    margin: 0 8px; /* Increased margin */
    position: relative;
    top: 18px; /* Align with middle of icons */
    transition: background-color 0.4s ease;
}
.step.completed + .step-line {
    background-color: var(--stepper-icon-completed-bg);
}
.step.active + .step-line {
    background-color: var(--stepper-icon-active-bg);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.form-step.active {
    display: block;
    color: #212121;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    text-align: center;
    font-size: 1.7em; /* Larger title */
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}
.step-subtitle {
    text-align: center;
    font-size: 1em;
    color: var(--light-text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}
h3.step-subtitle {
    /* For sub-headings within a step */
    font-size: 1.1em;
    color: var(--text-color);
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* Form Elements */
.form-group {
    position: relative;
}
.form-control {
    width: 100%;
    padding: 13px 16px; /* Adjusted padding */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Softer radius */
    font-size: 1em;
    font-family: var(--font-family);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--input-bg-color);
}
.form-control:focus {
    outline: none;
    border-color: var(--light-blue-accent);
    box-shadow: 0 0 0 3px rgba(35, 121, 246, 0.15);
    background-color: var(--white-color);
}
.form-control.text-center {
    text-align: center;
}
.form-control.date-input {
    color: #333;
} /* Ensure date text is visible */
.form-control.date-input.date-placeholder {
    color: #999;
}

.form-control.is-invalid {
    border-color: var(--danger-color) !important; /* Ensure override */
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}
.form-control.is-valid {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15) !important;
}
.error-message {
    display: block;
    color: var(--danger-color);
    font-size: 0.87em;
    font-weight: 500;
    margin-top: 7px;
    padding-right: 3px;
    min-height: 1.2em; /* Prevents layout shift */
}
.form-group .form-check + .error-message {
    text-align: right;
    margin-top: 4px;
}

.input-group {
    display: flex;
    gap: 12px; /* Spacing between grouped inputs */
}
.input-group .form-group {
    /* Remove bottom margin if group itself handles spacing */
    margin-bottom: 0;
    flex-grow: 1; /* Allow inputs to grow equally */
}

.form-note {
    font-size: 0.85em;
    color: var(--light-text-color);
    text-align: center;
    margin-top: -10px; /* Pull up slightly if under a field */
    margin-bottom: 15px;
}
.form-note.text-info {
    color: var(--info-color);
    font-weight: 500;
}
.form-note.text-danger {
    color: var(--danger-color);
    font-weight: 500;
}

.file-upload-label {
    display: block;
    border: 2px dashed var(--border-color);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    color: #3e838c;
}
.file-upload-label:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}
.file-upload-label input[type="file"] {
    display: none;
}
.file-upload-label span {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95em;
}
.file-upload-label span i {
    margin-left: 8px;
}

/* Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}
.form-buttons.column-buttons {
    flex-direction: column;
}
.form-buttons.column-buttons .btn {
    width: 100%;
    margin-bottom: 10px;
}
.form-buttons.column-buttons .btn:last-child {
    margin-bottom: 0;
}

.btn {
    padding: 13px 28px;
    border: none;
    border-radius: 28px;
    font-size: 1.03em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-family);
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}
.btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: hsl(from var(--primary-color) h s calc(l - 7%));
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.btn-secondary:hover {
    background-color: hsl(from var(--secondary-color) h s calc(l - 7%));
}

.btn-grey {
    background-color: var(--btn-grey-bg);
    color: var(--btn-grey-text);
}
.btn-grey:hover {
    background-color: hsl(from var(--btn-grey-bg) h s calc(l - 7%));
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white-color);
}
.btn-danger:hover {
    background-color: hsl(from var(--danger-color) h s calc(l - 7%));
}

.btn-light-purple {
    background-color: #58a6ab;
    color: var(--white-color);
}
.btn-light-purple:hover {
    background-color: hsl(from #58a6ab h s calc(l - 7%));
    color: #58a6ab;
}

.btn-dark-blue {
    background-color: #e59701;
    color: var(--white-color);
}
.btn-dark-blue:hover {
    background-color: hsl(from#e59701 h s calc(l - 7%));
    color: #e59701;
}

.btn-link {
    background: none;
    color: var(--primary-color);
    text-decoration: none; /* No underline by default, hover can add it */
    font-weight: 600;
    padding: 8px 5px;
    box-shadow: none;
}
.btn-link:hover {
    color: hsl(from var(--primary-color) h s calc(l - 10%));
    transform: none;
    box-shadow: none;
}

/* Centered icon & Text utilities */
.centered-icon {
    text-align: center;
    margin-bottom: 18px;
}
.centered-icon img {
    width: 60px;
}
.centered-icon i {
    font-size: 3em; /* For FontAwesome icons */
}

.text-center {
    text-align: center;
}
.mt-1 {
    margin-top: 0.5rem;
}
.mt-2 {
    margin-top: 1rem;
}
.mt-3 {
    margin-top: 1.5rem;
}
.mb-1 {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mb-3 {
    margin-bottom: 1.5rem;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.text-highlight {
    color: var(--primary-color);
    font-weight: 700;
}
.small-text {
    font-size: 0.9em;
    color: var(--light-text-color);
    line-height: 1.5;
}

/* Checkboxes */
.form-check-group {
    margin-bottom: 15px;
}
.form-check {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align to start for RTL */
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px; /* Add some padding for easier clicking */
    border-radius: 6px;
    transition: background-color 0.2s;
}
.form-check:hover {
    background-color: #f8f9fa;
}
.form-check input[type="checkbox"] {
    margin-left: 10px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color); /* Modern way to color checkbox */
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}
.form-check label {
    /* The text part of the label if needed */
    font-size: 0.95em;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050; /* Higher z-index for modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(
        30,
        40,
        60,
        0.7
    ); /* Darker, slightly bluish overlay */
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.modal.active {
    display: flex;
}
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 28px 32px;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideInModal 0.35s ease-out;
}
.modal-content.small-modal {
    max-width: 400px;
}

@keyframes slideInModal {
    from {
        transform: translateY(-40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
.modal-close {
    color: #999;
    position: absolute;
    top: 12px;
    left: 15px; /* For RTL */
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover,
.modal-close:focus {
    color: #555;
    text-decoration: none;
}

.modal-title {
    text-align: center;
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 22px;
    font-weight: 700;
}
.error-modal-content .modal-title,
.error-title {
    color: var(--danger-color);
}
.error-modal-content .fa-exclamation-triangle {
    margin-bottom: 15px;
    color: var(--danger-color);
}

.success-title {
    color: var(--success-color);
}
.success-message {
    font-size: 1.05em;
    color: var(--text-color);
    margin-bottom: 12px;
}
.success-message strong {
    color: var(--primary-color);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 0.95em;
}
.price-table td {
    padding: 10px 6px;
    border-bottom: 1px solid #f0f0f0; /* Lighter border */
    color: #4b9fa5;
    text-align: right;
}
.price-table tr:last-child td {
    border-bottom: none;
}
.price-table .total-row td {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.15em;
    border-top: 2px solid var(--primary-color);
    padding-top: 10px;
}
.price-table td:last-child {
    text-align: left;
    font-weight: 600;
}

/* Conditional Visibility */
[data-condition] {
    display: none;
}
[data-condition].visible {
    display: block;
    animation: fadeIn 0.4s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-wrapper,.main-container {
        padding: 0 !important;
    }
    .form-container {
        padding: 25px 20px;
    }
    .step-label {
        font-size: 0.8em;
    } /* Smaller labels on mobile */
    .step-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    .step-number {
        font-size: 1em;
    }
    .step-check {
        font-size: 1.1em;
    }
    .step-line {
        top: 15px;
        margin: 0 5px;
    }
    .input-group {
        flex-direction: column;
        gap: 0;
    } /* Stack inputs */
    .input-group .form-group {
        margin-bottom: 20px;
    } /* Add back margin for stacked inputs */
    .input-group .form-group:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .step-title {
        font-size: 1.45em;
        margin-bottom: 20px;
    }
    .step-subtitle {
        font-size: 0.9em;
    }
    .btn {
        padding: 12px 22px;
        font-size: 0.98em;
    }
    .stepper {
        /* Allow horizontal scroll for stepper on very small screens */
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    }
    .stepper .step {
        min-width: 55px; /* Adjust if needed */
    }
    .whatsapp-fab span {
        display: none;
    }
    .whatsapp-fab {
        padding: 14px;
    }
    .whatsapp-fab img {
        margin-left: 0;
        width: 26px;
        height: 26px;
    }
    .modal-content {
        padding: 20px 18px;
    }
    .modal-title {
        font-size: 1.3em;
    }
}
/* ... (كل الأنماط السابقة) ... */

.modal-body {
    line-height: 1.7;
    font-size: 0.95em;
    color: var(--text-color);
}
.modal-body strong {
    color: var(--primary-color);
}
.modal-body img {
    /* For the sample deed image */
    display: block;
    margin: 15px auto;
    max-width: 90%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Styling for the conditional agent section */
#agentDetailsSection {
    display: none; /* Initially hidden */
    border-top: 2px dashed var(--border-color);
    margin-top: 25px;
    padding-top: 15px;
}
#agentDetailsSection.visible {
    display: block;
    animation: fadeIn 0.5s; /* Re-use existing fadeIn */
}
/* Buttons - General Styling & Hover Effects */
.btn {
    padding: 12px 25px; /* Default padding, can be overridden */
    border: 2px solid transparent; /* Base border for smooth transitions */
    border-radius: 30px; /* Pill shape for most buttons */
    font-size: 1.05em; /* Slightly larger font */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
    font-family: var(--font-family);
    letter-spacing: 0.3px; /* Subtle letter spacing */
    text-align: center;
    display: inline-flex; /* For aligning icon and text */
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Remove default underline from <a> tags styled as buttons */
    line-height: 1.5; /* Ensure consistent line height */
}

.btn i {
    /* For icons inside buttons */
    margin-right: 8px; /* Space between icon and text (RTL) */
    font-size: 1.1em; /* Slightly larger icon */
}
.btn:disabled {
    /* Style for disabled buttons */
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Primary Button (التالي, موافق, إرسال) */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(35, 121, 246, 0.2); /* Subtle shadow */
}
.btn-primary:hover:not(:disabled) {
    background-color: hsl(
        from var(--primary-color) h s calc(l - 8%)
    ); /* Darken */
    border-color: hsl(from var(--primary-color) h s calc(l - 8%));
    transform: translateY(-2px) scale(1.02); /* Lift and slightly scale */
    box-shadow: 0 6px 16px rgba(35, 121, 246, 0.3);
}
.btn-primary:active:not(:disabled) {
    transform: translateY(0px) scale(1);
    box-shadow: 0 2px 8px rgba(35, 121, 246, 0.25);
}

/* Secondary/Previous Button (السابق) */
.btn-secondary {
    background-color: var(--white-color);
    color: var(--secondary-color);
    border-color: var(--border-color); /* Light border */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.btn-secondary:hover:not(:disabled) {
    background-color: #f8f9fa; /* Very light grey */
    color: var(--text-color); /* Darker text on hover */
    border-color: #ced4da; /* Slightly darker border */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.btn-secondary:active:not(:disabled) {
    transform: translateY(0px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Grey Button (إلغاء في الخطوة 7) */
.btn-grey {
    background-color: var(--btn-grey-bg);
    color: var(--btn-grey-text);
    border-color: #d3d9df;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.btn-grey:hover:not(:disabled) {
    background-color: hsl(from var(--btn-grey-bg) h s calc(l - 5%));
    color: var(--text-color);
    border-color: #c0c8d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

/* Danger Button (تغيير المدة) */
.btn-danger {
    background-color: var(--danger-color);
    color: var(--white-color);
    border-color: var(--danger-color);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}
.btn-danger:hover:not(:disabled) {
    background-color: hsl(from var(--danger-color) h s calc(l - 8%));
    border-color: hsl(from var(--danger-color) h s calc(l - 8%));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.25);
}

/* Specific Buttons from Thank You Page */
.btn-light-purple {
    background-color: var(--btn-light-purple-bg);
    color: var(--white-color);
    border-color: var(--btn-light-purple-bg);
    box-shadow: 0 4px 12px rgba(164, 127, 244, 0.2);
}
.btn-light-purple:hover:not(:disabled) {
    background-color: hsl(from var(--btn-light-purple-bg) h s calc(l - 8%));
    border-color: hsl(from var(--btn-light-purple-bg) h s calc(l - 8%));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(164, 127, 244, 0.3);
}

.btn-dark-blue {
    background-color: var(--btn-dark-blue-bg);
    color: var(--white-color);
    border-color: var(--btn-dark-blue-bg);
    box-shadow: 0 4px 12px rgba(40, 53, 147, 0.2);
}
.btn-dark-blue:hover:not(:disabled) {
    background-color: hsl(from var(--btn-dark-blue-bg) h s calc(l - 8%));
    border-color: hsl(from var(--btn-dark-blue-bg) h s calc(l - 8%));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(40, 53, 147, 0.3);
}

/* Link Button (تفاصيل السعر, إضافة عداد) */
.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0; /* Adjust padding as needed */
    box-shadow: none;
    display: inline; /* Treat as text flow */
    line-height: normal;
}
.btn-link:hover:not(:disabled) {
    color: var(--primary-color);
    transform: none; /* No transform for link-like buttons */
    box-shadow: none;
}
.price-details-btn {
    /* Specific styling for price details if needed */
    font-size: 0.9em;
    margin-top: 20px;
}

/* Form Buttons Container - ensures consistent spacing */
.form-buttons {
    display: flex;
    margin-top: 35px; /* Increased top margin */
    gap: 12px; /* Consistent gap */
}
/* Default: Space between Prev and Next */
.form-buttons .btn-prev {
    /* "السابق" button */
    margin-left: auto; /* Pushes Next button to the right in RTL */
}

/* Centered buttons (e.g., in modals or single action steps) */
.form-buttons.centered {
    justify-content: center;
}
.form-buttons.centered .btn-prev {
    /* Reset margin if centered */
    margin-left: 0;
}

/* Column buttons (Thank You page) */
.form-buttons.column-buttons {
    flex-direction: column;
    align-items: stretch; /* Make buttons full width of container */
}
.form-buttons.column-buttons .btn {
    width: 100%;
    margin-bottom: 12px;
}
.form-buttons.column-buttons .btn:last-child {
    margin-bottom: 0;
}
.price-details-btn {
    display: block;
    margin: 25px auto 0;
    font-size: 0.95em;
}
/* ... (كل الأنماط السابقة) ... */

/* Styles for the "How to get Deed Number" Modal */
.modal-content.large-modal {
    max-width: 650px; /* أو أي عرض تراه مناسبًا للخطوات والصور */
}

.deed-steps-container {
    max-height: 70vh; /* حد أقصى لارتفاع المحتوى قبل ظهور شريط تمرير */
    overflow-y: auto; /* إضافة شريط تمرير عمودي إذا تجاوز المحتوى الارتفاع */
    padding-right: 10px; /* مسافة لشريط التمرير في RTL */
    margin-right: -10px; /* لتعويض padding إذا كان شريط التمرير يسبب ضيق */
}

.deed-step {
    margin-bottom: 25px;
    padding-bottom: 15px;
    text-align: center; /* لتوسيط الصورة والتعليق إذا لم يكن النص طويلاً */
}

.deed-step-number {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    padding: 5px 10px;
    background-color: var(--input-bg-color);
    border-radius: 6px;
    display: inline-block; /* لجعله يلتف حول النص */
}

.deed-step-instruction {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: right; /* لضمان محاذاة النص لليمين */
}

.deed-step-image {
    max-width: 100%; /* لضمان أن الصورة لا تتجاوز عرض الـ modal */
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.deed-step-caption {
    font-size: 0.8em;
    color: var(--light-text-color);
    font-style: italic;
}

.deed-step-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin-top: 10px;
    margin-bottom: 25px;
}
.modal-content p,
label {
    color: #4b9fa5;
    margin-bottom: 7px;
}
svg {
    color: #28a745;
    width: 20%;
}
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.info-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.info-modal-content {
    background-color: #fff;
    color: var(--text-dark, #333);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 550px;
    width: 90%;
    animation: scaleUp 0.5s ease-out;
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.info-modal-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color, #3e838c);
    margin-bottom: 20px;
}

.info-modal-content h2 .emoji {
    font-size: 2rem;
    vertical-align: middle;
}

.info-modal-content p {
    font-size: 1.05rem;
    color: var(--text-light, #555);
    margin-bottom: 15px;
    line-height: 1.7;
}

.info-modal-content ul {
    list-style: none;
    padding: 0;
    text-align: right;
    margin-bottom: 25px;
}

.info-modal-content ul li {
    font-size: 1rem;
    margin-bottom: 10px;
    padding-right: 25px;
    position: relative;
}

.info-modal-content ul li::before {
    content: "•";
    color: var(--primary-color, #3e838c);
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3em;
}

.info-modal-content .btn-start-form,
.info-modal-content .btn-close-info {
    padding: 12px 30px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.info-message-box {
    background-color: #f0f7fa;
    border: 1px solid #bce8f1;
    color: #31708f;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 90%;
    text-align: center;
    display: none;
}

.info-message-box h3 {
    color: #31708f;
    margin-top: 0;
    font-size: 1.5rem;
}

.info-message-box ul {
    text-align: right;
    display: inline-block;
    margin-top: 10px;
}

.info-message-box ul li {
    text-align: right;
}

.info-message-box .emoji-large {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.price-breakdown {
    text-align: right;
    font-size: 0.95rem;
    margin-top: 15px;
}

.price-breakdown p {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.price-breakdown strong {
    color: var(--primary-color);
}

.price-breakdown .total-price-dynamic {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color, #2766a9);
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.btn-contract-type.active {
    background-color: var(--secondary-color, #2766a9);
    color: white;
}
