/* Purchase Flow Styles */

/* Add padding-top for fixed header */
.purchase-form-section {
    background-color: #f5f7fa;
    min-height: 100vh;
    padding-top: 150px !important;
}

/* Progress Steps */
.purchase-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e8eef5;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    transition: color 0.3s ease;
    text-align: center;
}

.progress-step.active .step-circle {
    background-color: #0b1d43;
    color: white;
    box-shadow: 0 4px 12px rgba(11, 29, 67, 0.3);
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: #0b1d43;
    font-weight: 600;
}

.progress-step.completed .step-circle {
    background-color: #28a745;
    color: white;
}

.progress-step.completed .step-label {
    color: #28a745;
}

.progress-line {
    flex: 1;
    height: 3px;
    background-color: #e8eef5;
    position: relative;
    min-width: 30px;
    max-width: 80px;
}

.progress-step.completed ~ .progress-line {
    background-color: #28a745;
}

/* Form Card */
.purchase-form-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
    min-height: 400px;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1b1b1f;
    margin-bottom: 10px;
    line-height: 1.3;
}

.step-description {
    color: #6c757d;
    margin-bottom: 35px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.form-control, .form-select {
    border: 2px solid #e8eef5;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    height: 40px;
    line-height: 1.5;
    transition: all 0.3s ease;
    width: 100%;
    background-color: #ffffff;
    color: #2c3e50;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

select.form-control,
select.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
}

select.form-control option,
select.form-select option {
    padding: 8px;
    color: #2c3e50;
    background-color: #ffffff;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: #0b1d43;
    box-shadow: 0 0 0 0.2rem rgba(11, 29, 67, 0.15);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* Ensure form groups have proper spacing */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group select {
    display: block;
    width: 100%;
}

/* Override any conflicting styles */
#emirateLocation {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 48px;
    line-height: 1.5;
    position: relative;
}

/* Prevent nice-select duplication only for emirateLocation */
#emirateLocation.nice-select,
select#emirateLocation ~ .nice-select,
select#emirateLocation + .nice-select {
    display: none !important;
}

/* Keep emirateLocation as regular select, not nice-select */
#emirateLocation {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

#locationGroup {
    margin-top: 20px;
    padding-top: 20px;
    transition: all 0.3s ease;
}

#locationGroup .form-label {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Package Options smooth transition */
#packageOptions {
    transition: all 0.3s ease;
}

/* Debug text styling */
#locationDebug {
    color: #28a745;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 8px;
    animation: fadeIn 0.5s ease;
}

/* Company Type Cards */
.company-type-card {
    border: 2px solid #e8eef5;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.company-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.company-type-card label {
    cursor: pointer;
    margin: 0;
    width: 100%;
    transition: all 0.25s ease;
}

.company-type-card i {
    font-size: 48px;
    color: #0f62fe;
    margin-bottom: 15px;
    transition: all 0.25s ease;
}

.company-type-card h5 {
    font-weight: 600;
    color: #1b1b1f;
    margin-bottom: 10px;
    transition: all 0.25s ease;
}

.company-type-card p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    transition: all 0.25s ease;
}

.company-type-card:hover {
    border-color: #0f62fe;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(15, 98, 254, 0.15);
}

.company-type-card.selected {
    border-color: #0f62fe;
    background-color: #f0f7ff;
    box-shadow: 0 8px 20px rgba(15, 98, 254, 0.2);
    transform: translateY(-3px);
}

.company-type-card.selected i {
    transform: scale(1.1);
}

.company-type-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: #0f62fe;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: checkmark 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* License Package Cards */
.license-package-card {
    border: 2px solid #e8eef5;
    border-radius: 16px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    opacity: 0;
    animation: slideInUp 0.4s ease forwards;
}

.license-package-card:nth-child(1) {
    animation-delay: 0.1s;
}

.license-package-card:nth-child(2) {
    animation-delay: 0.2s;
}

.license-package-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.license-package-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.license-package-card label {
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.license-package-card h5 {
    font-weight: 600;
    color: #1b1b1f;
    margin-bottom: 10px;
    transition: all 0.25s ease;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f62fe;
    margin-bottom: 15px;
    transition: all 0.25s ease;
}

.license-package-card:hover {
    border-color: #0f62fe;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(15, 98, 254, 0.15);
}

.license-package-card:hover .package-price {
    transform: scale(1.05);
}

.license-package-card.selected {
    border-color: #0f62fe;
    background-color: #f0f7ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 98, 254, 0.2);
}

.license-package-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background-color: #0f62fe;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    animation: checkmark 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Shareholder Forms */
.shareholder-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    border: 2px solid #e8eef5;
    border-left: 5px solid #0f62fe;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease;
}

.shareholder-form:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.shareholder-form h5 {
    color: #0f62fe;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.shareholder-form h5::before {
    content: '👤';
    margin-right: 10px;
    font-size: 1.5rem;
}

.shareholder-form .row {
    margin-top: 10px;
}

.shareholder-form .form-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.shareholder-form .form-control {
    border: 2px solid #e8eef5;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.shareholder-form .form-control:focus {
    border-color: #0f62fe;
    box-shadow: 0 0 0 0.2rem rgba(15, 98, 254, 0.15);
}

/* Shareholder Count Select */
#shareholderCount {
    max-width: 400px;
}

/* Shareholder Forms Container */
#shareholderForms {
    margin-top: 30px;
}

#shareholderForms:empty {
    display: none;
}

/* Alerts */
.restriction-alert, .nationality-alert {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    animation: slideInDown 0.4s ease;
    margin-top: 25px;
    margin-bottom: 25px;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-heading {
    font-weight: 600;
    font-size: 1.1rem;
}

.restriction-alert {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 5px solid #ffc107;
}

.nationality-alert {
    background: linear-gradient(135deg, #f8d7da 0%, #ffe5e8 100%);
    border-left: 5px solid #dc3545;
}

.alert .btn {
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.alert .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Summary Box */
.summary-box {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e8eef5;
}

.summary-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e8eef5;
}

.summary-table tr:last-child td {
    border-bottom: none;
}

/* Addon Items */
.addon-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.addon-item {
    background: white;
    border: 2px solid #e8eef5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.addon-item:hover {
    border-color: #0f62fe;
}

.addon-item input[type="checkbox"] {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.addon-item label {
    margin-left: 35px;
    cursor: pointer;
    margin-bottom: 0;
    width: calc(100% - 35px);
}

.addon-price {
    font-weight: 600;
    color: #0f62fe;
    font-size: 1.1rem;
}

/* Total Cost Box */
.total-cost-box {
    background: linear-gradient(135deg, #0f62fe 0%, #0043ce 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
}

.total-cost-box h4, .total-cost-box h3 {
    color: white;
}

/* Policy Agreement Checkbox */
.policy-agreement-box {
    background: white;
    border: 2px solid #e8eef5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.policy-agreement-box:hover {
    border-color: #0f62fe;
}

.policy-agreement-box input[type="checkbox"] {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.policy-agreement-box label {
    margin-left: 35px;
    cursor: pointer;
    margin-bottom: 0;
    width: calc(100% - 35px);
}

.policy-agreement-box label a {
    color: #0f62fe;
    text-decoration: none;
    font-weight: 600;
}

.policy-agreement-box label a:hover {
    text-decoration: underline;
}

/* Payment Amount Box */
.payment-amount-box {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

/* Payment Method Cards */
.payment-method-card {
    border: 2px solid #e8eef5;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.payment-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-card label {
    cursor: pointer;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-method-card i {
    font-size: 36px;
    color: #0f62fe;
}

.payment-method-card span {
    font-weight: 600;
    color: #2c3e50;
}

.payment-method-card:hover {
    border-color: #0f62fe;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(15, 98, 254, 0.15);
}

.payment-method-card.selected {
    border-color: #0f62fe;
    background-color: #f0f7ff;
}

/* Payment Form Section */
.payment-form-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 30px;
    border-top: 2px solid #e8eef5;
}

.form-navigation .btn {
    min-width: 120px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0b1d43;
    border-color: #0b1d43;
}

.btn-primary:hover {
    background-color: #04a2de;
    border-color: #04a2de;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 29, 67, 0.3);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* Success Icon */
.success-icon i {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .purchase-form-card {
        padding: 35px 25px;
    }

    .step-title {
        font-size: 1.7rem;
    }

    .purchase-progress {
        padding: 30px 15px;
    }

    .step-label {
        font-size: 11px;
    }
}

@media (max-width: 767.98px) {
    .purchase-progress {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 25px 15px;
    }

    .progress-line {
        min-width: 20px;
        max-width: 40px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 10px;
        max-width: 60px;
    }

    .form-navigation {
        flex-direction: column;
    }

    .form-navigation .btn {
        width: 100%;
    }

    .company-type-card,
    .license-package-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .purchase-form-card {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .step-description {
        font-size: 0.95rem;
    }

    .addon-item label {
        font-size: 14px;
    }

    .addon-price {
        font-size: 1rem;
    }
}

/* Additional Utility Classes */
.text-primary {
    color: #0f62fe !important;
}

.bg-primary {
    background-color: #0f62fe !important;
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* Fix Bootstrap form-control conflicts */
.purchase-form-card .form-control-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    line-height: 1.5;
    border-radius: 0.5rem;
}

/* Business Activity Dropdown Specific Styling */
#businessActivity {
    border: 2px solid #e8eef5 !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230f62fe' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 12px;
    padding-right: 45px !important;
}

#businessActivity:hover {
    border-color: #0f62fe !important;
    box-shadow: 0 4px 12px rgba(15, 98, 254, 0.1);
}

#businessActivity:focus {
    border-color: #0f62fe !important;
    box-shadow: 0 0 0 0.2rem rgba(15, 98, 254, 0.15);
    outline: none;
}

#businessActivity option {
    padding: 12px !important;
    font-size: 15px !important;
    color: #2c3e50 !important;
    background-color: #ffffff !important;
}

#businessActivity optgroup {
    font-weight: 600;
    font-size: 14px;
    color: #0f62fe;
    padding: 8px 0;
}

/* Ensure proper text display in selects */
.purchase-form-card select {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
}

.purchase-form-card select option {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    padding: 8px 12px;
}

/* Small text styling */
small.form-text {
    display: block;
    margin-top: 1.5rem !important;
    font-size: 0.875rem;
}

/* View Restricted Link specific margin */
#viewRestrictedLink {
    display: inline-block;
    margin-top: 15px !important;
}

small.form-text a#viewRestrictedLink {
    margin-top: 0 !important;
}

#businessActivity + small.form-text,
select#businessActivity ~ small.form-text {
    margin-top: 25px !important;
    padding-top: 15px !important;
}

.text-muted {
    color: #6c757d !important;
}

.d-block {
    display: block !important;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid #e8eef5;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 2px solid #e8eef5;
    padding: 20px 25px;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Print Styles for Invoice */
@media print {
    /* Set A4 page size */
    @page {
        size: A4 portrait;
        margin: 10mm 8mm;
    }

    /* Hide everything except the invoice content */
    body * {
        visibility: hidden;
    }
    
    /* Show only Step 4 (Package Summary) for invoice */
    #step-4, #step-4 * {
        visibility: visible;
    }
    
    /* Position the invoice content */
    #step-4 {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 5px;
        max-width: 100%;
    }
    
    /* Hide navigation buttons */
    .form-navigation,
    .progress-container,
    .policy-agreement-box,
    .purchase-progress,
    header,
    footer,
    .modal,
    .modal-backdrop,
    .myheader,
    .scroll-top {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Prevent page breaks */
    * {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    /* Remove shadows and transitions for print */
    * {
        box-shadow: none !important;
        transition: none !important;
        animation: none !important;
        background-image: none !important;
    }
    
    /* Ensure borders are visible */
    .license-package-card,
    .shareholder-summary,
    .addon-summary,
    .total-cost-box {
        border: 1px solid #333 !important;
        margin-bottom: 6px !important;
    }
    
    /* Make text more readable and compact */
    body {
        font-size: 8pt !important;
        color: #000 !important;
        background: white !important;
        line-height: 1.2 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Reduce heading sizes */
    h3, .step-title {
        font-size: 12pt !important;
        margin-bottom: 4px !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    h4 {
        font-size: 10pt !important;
        margin-bottom: 3px !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    h5 {
        font-size: 9pt !important;
        margin-bottom: 2px !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
    
    .step-description {
        font-size: 8pt !important;
        margin-bottom: 6px !important;
        padding: 0 !important;
    }
    
    /* Add invoice header - compact */
    #step-4::before {
        content: "INVOICE - Company Formation";
        display: block;
        font-size: 14pt !important;
        font-weight: bold;
        text-align: center;
        margin-bottom: 8px;
        padding-bottom: 4px;
        border-bottom: 1px solid #000;
    }
    
    /* Add company info - compact */
    #step-4::after {
        content: "FDIZONE LLC | info@fdizone.com | +971-XX-XXX-XXXX";
        display: block;
        text-align: center;
        margin-top: 8px;
        padding-top: 4px;
        border-top: 1px solid #333;
        font-size: 7pt !important;
    }
    
    /* Adjust colors for printing */
    .total-cost-box {
        background: #f0f0f0 !important;
        color: #000 !important;
        padding: 6px !important;
        margin-top: 6px !important;
    }
    
    .total-cost-box h4,
    .total-cost-box h3 {
        color: #000 !important;
        font-size: 11pt !important;
        margin: 3px 0 !important;
    }
    
    /* License package card adjustments */
    .license-package-card.selected {
        border: 1px solid #333 !important;
        background: #f9f9f9 !important;
        padding: 6px !important;
        margin-bottom: 6px !important;
    }
    
    .license-package-card.selected::after {
        display: none !important;
    }
    
    /* Table styling - very compact */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 6px !important;
        font-size: 8pt !important;
    }
    
    table td {
        padding: 2px 6px !important;
        border: 1px solid #ccc !important;
        line-height: 1.2 !important;
    }
    
    table tr.table-primary td {
        background: #e0e0e0 !important;
        font-weight: bold !important;
    }
    
    /* Shareholder details styling */
    table td[colspan="2"] {
        background: #f0f0f0 !important;
        font-weight: bold !important;
        padding: 3px 6px !important;
    }
    
    /* Remove extra margins */
    .mb-3, .mb-4, .mb-5 {
        margin-bottom: 4px !important;
    }
    
    .mt-3, .mt-4, .mt-5 {
        margin-top: 4px !important;
    }
    
    .p-3, .p-4, .p-5 {
        padding: 4px !important;
    }
    
    .pt-80, .pt-120 {
        padding-top: 0 !important;
    }
    
    .pb-80, .pb-120 {
        padding-bottom: 0 !important;
    }
    
    /* Ensure everything fits on one page */
    .purchase-form-card {
        padding: 5px !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .purchase-form-section {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .row {
        margin: 0 !important;
    }
    
    .col-xl-10 {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Addon summary compact */
    .addon-summary {
        padding: 6px !important;
        margin-bottom: 6px !important;
    }
    
    .addon-item {
        margin-bottom: 3px !important;
        font-size: 8pt !important;
    }
    
    /* Form step adjustments */
    .form-step {
        padding: 0 !important;
        margin: 0 !important;
    }
}


