/* Main wrapper - centers the calculator card */
/* fab */

.km-calculator-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 15px;
}

.km-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(145deg, #6ea8dc, #5b9bd5);
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 43px;
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.6),   
    0 0 0 1 rgba(192,192,192,0.3),     
    0 12px 30px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.5),
    inset 0 -3px 8px rgba(128,128,128,0.25);
  position: relative;
  overflow: hidden;
  min-height: 600px;
  margin-top: 25px;
}

/* Tabs container */
.km-tabs {
    max-width: 300px;
    display: flex;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
 
    min-height: 42px;
    border-radius: 25px;
}

/* Individual tab buttons */
.km-tab {
    flex: 1;
    border: none;
    width: 129px;
    height: 42px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    margin: 0;
    padding: 5px 11px;
    position: relative;
    border-radius: 25px;
}

/* Active tab */
.km-tab.km-active {
	font-family: 'Satoshi', sans-serif;
    letter-spacing: 0px;
	text-transform: capitalize;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    background: #0E74E8CC !important;
    color: #FDFDFD !important;
	border: 2px solid #BEDBFB;
}

/* Inactive tab */
.km-tab:not(.km-active) {
    font-family: 'Satoshi', sans-serif;
    letter-spacing: 0px;
	text-transform: capitalize;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    background: #FFFFFF !important;
    color: #414141 !important;
	box-shadow: none;
}

/* Hover effect for inactive tabs */
.km-tab:not(.km-active):hover {
    background: #0E74E8CC !important;
    color: #ffffff !important;
}

/* Content wrappers */
.km-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 25px 25px 25px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide scrollbar but keep functionality */
.km-content::-webkit-scrollbar {
    width: 5px;
}

.km-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.km-content::-webkit-scrollbar-thumb {
    background: #0E74E8;
    border-radius: 10px;
}

/* Form content */
.km-form-content {
    opacity: 1;
    transform: translateX(0);
    border: 20px solid #72B1F6;
    border-radius: 40px;
    overflow: hidden;
}

/* Hide form */
.km-form-content.hide {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Result content */
.km-result-content {
    opacity: 0;
    transform: translateX(100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    border-radius: 20px;
}

/* Show result */
.km-result-content.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Form fields */
.km-field {
    margin-bottom: 18px;
}

.km-field label {
	font-family: 'Satoshi', sans-serif;
	font-weight: 500;
	color: #102A49;
	line-height: 140%;
	letter-spacing: 0%;
	vertical-align: middle;
    font-size: 15px;
    line-height: 22px;
    display: block;
    margin-bottom: 5px;
}

.km-field select {
	font-family: 'Satoshi', sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 140%;
	letter-spacing: 0%;
	vertical-align: middle;
	margin-top: 5px;
    color: #929292;
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.km-field select:hover {
    border-color: #0E74E8;
}

.km-field select:focus {
    outline: none;
    border-color: #73B2FA;
    box-shadow: 0 0 0 3px rgba(14, 116, 232, 0.1);
}

/* Salary slider */
#km_salary, #km_inline_salary {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
    margin: 10px 0 5px;
}

#km_salary::-webkit-slider-thumb, #km_inline_salary::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 3px solid #0E74E8;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: -7px;
}

#km_salary::-moz-range-thumb, #km_inline_salary::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 3px solid #0E74E8;
    border-radius: 50%;
    cursor: pointer;
}

#km_salary::-webkit-slider-runnable-track, #km_inline_salary::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #0E74E8, #73B2FA);
    border-radius: 2px;
}

.km-range-footer {
    display: flex;
    justify-content: space-between;
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

#km_salary_val, #km_inline_salary_val {
    font-weight: 600;
    color: #0E74E8;
    background: #E6F0FF;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.km-range-limit {
	font-family: 'Satoshi', sans-serif;
	font-size: 12px;
	color: #6B6B6B;
	font-weight: 500;
	line-height: 100%;
	letter-spacing: 0%;
    text-align: right;
	vertical-align: middle;
}

/* Calculate button */
.km-btn {
	font-family: 'Satoshi', sans-serif;
    display: block;
    margin: 20px auto 0;
    width: 200px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    background: #0E74E8CC;
    color: #FDFDFD;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 6px 0 #0A4A9E;
    transition: all 0.1s ease;
    outline: none;
	line-height: 16px;
	letter-spacing: 0%;
	text-align: center;
}

.km-btn:hover {
    background: #0E74E899;
    box-shadow: 0 0 0 #0A4A9E;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.km-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #0A4A9E;
}

/* Result styles */
.result-inner {
    width: 100%;
    padding: 15px 0;
}

.result-inner h2 {
    font-family: 'Satoshi', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #102A49;
    margin-bottom: 15px;
    line-height: 1.3;
}

.refund-amount {
    font-family: 'Satoshi', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #0E74E8;
    margin: 10px 0 15px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(14, 116, 232, 0.1);
}

.disclaimer {
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #333333;
    line-height: 1.5;
    margin: 0 0 20px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
}

.info-icon {
    color: #0E74E8;
    font-weight: bold;
    margin-right: 6px;
    font-size: 12px;
    display: inline-block;
    background: #e6f0ff;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
}


/* CLAIM BUTTON - HIGH SPECIFICITY WITHOUT !important */
.km-calculator-wrapper .km-claim-btn,
.km-inline-wrapper .km-claim-btn,
.km-result-box .km-claim-btn,
.result-inner .km-claim-btn {
    display: block;
    width: 85%;
    max-width: 280px;
    margin: 15px auto;
    padding: 0;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    background: #3E90ED;
    color: #ffffff;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    line-height: 44px;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 0 #0A4A9E;
    box-sizing: border-box;
}

.km-calculator-wrapper .km-claim-btn:hover,
.km-inline-wrapper .km-claim-btn:hover {
    background: #0E74E899;
    box-shadow: 0 0 0 #0A4A9E;
}

.km-calculator-wrapper .km-claim-btn:active,
.km-inline-wrapper .km-claim-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #0A4A9E;
}

/* Parent centering - already there */
.result-inner,
.km-result-box {
    text-align: center;
}

.km-clear-link {
    border: none;
    color: #102A49;
    font-family: 'Satoshi';
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    padding: 6px 12px;
    outline: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.km-clear-link:hover {
    color: #0E74E8;
    opacity: 1;
    text-decoration: underline;
}

/* Remove any duplicate tabs */
.km-tabs + .km-tabs {
    display: none;
}

p {
    margin-bottom: 0 !important;
}

/* =========================
   INLINE STYLES
========================= */

.km-no-border {
    width: 100%;
    max-width: 520px;
    background: transparent;
    border: none !important;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    min-height: 0;
    margin-top: 0;
    border-radius: 0;
}

/* Inline Header */
.km-inline-header {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: middle;
}

.km-inline-header h2 {
    font-family: Satoshi;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #102A49;
}

.km-header-subtitle {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #102A49;
    margin: 15px 0 15px 0 !important;
    line-height: 36px;
    letter-spacing: -2%;
    text-align: left;
    vertical-align: middle;
}

.km-header-description {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #414141;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: middle;
}

/* Two-column layout */
.km-inline-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Form */
.km-inline-left {
    flex: 1;
    min-width: 350px;
}

/* Right Result */
.km-inline-right {
    flex: 1;
    min-width: 350px;
    height: 580px;
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 42px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.6),   
        0 0 0 1 rgba(192,192,192,0.3),     
        0 12px 30px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.5),
        inset 0 -3px 8px rgba(128,128,128,0.25);
    overflow: hidden;
}

/* ADDED: Make .km-result-box a positioned container */
.km-result-box {
    position: relative;   /* <-- ADD THIS LINE */
    width: 100%;
    height: 500px;
    background: #ffffff;
    border: 15px solid #73B2FA;
    border-radius: 40px;
    padding: 30px 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* MODIFIED: Image positioned absolutely to sit on bottom border */
/*
.km-inline-wrapper .bottom-image,
.km-calculator-wrapper .bottom-image {
    position: absolute; 
    left: 50%;
    transform: translateX(-50%);
    display: block;
    max-width: 100px;    
    width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;                 
    z-index: 2;
}
*/

.km-inline-wrapper .bottom-image, .km-calculator-wrapper .bottom-image {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  max-width: 140px;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  z-index: 2;
  bottom: -73px;
}


.km-result-box h3 {
    font-family: 'Satoshi', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #102A49;
    margin-bottom: 15px;
}

.km-inline-result {
    font-family: 'Satoshi', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #0E74E8;
    margin: 10px 0 15px;
    line-height: 1;
}

.disclaimer-inline {
    font-family: Satoshi;
    font-size: 20px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px;
    border-radius: 12px;
}

button.km-tab.km-regular-tab {
	box-shadow: none;
}

.tr-cal {
	max-width: 205px;
	max-height: 34px;
	background: #72B1F61A;
	border-radius: 24px;
	padding: 6px 10px;
	border-style: solid !important;
	border-width: 0 1px !important;
	border-color: #E9E9E9 !important;
	text-align: center;
}

.tr-cal h2 {
    font-size: 13px !important;
    margin: 0 !important;
}
                                 
                                 
.top-cal {
    margin-bottom: 30px;
}                                 
                                 

/* =========================
   RESPONSIVE IMPROVEMENTS
   ========================= */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .km-card {
        max-width: 100%;
        border-width: 10px;
        min-height: auto;
    }
    .km-content {
        padding: 0 20px 20px;
        position: relative;
        height: auto;
        overflow-y: visible;
    }
    .km-tabs {
        max-width: 100%;
        margin-bottom: 20px;
        gap: 10px;
    }
    .km-tab {
        font-size: 13px;
    }
    .refund-amount {
        font-size: 32px;
    }
    .km-inline-container {
        flex-direction: column;
        gap: 25px;
    }
    .km-inline-left,
    .km-inline-right {
        min-width: 100%;
        border-radius: 22px;
        overflow: visible;
    }
    .km-inline-right {
        height: 500px;
    }
    .km-result-box {
        height: 420px;
        border-width: 12px;
        padding: 25px 20px;
    }
    .km-inline-wrapper .bottom-image,
    .km-calculator-wrapper .bottom-image {
bottom: -79px;
    max-width: 150px;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .km-calculator-wrapper {
        padding: 20px 10px;
    }
    .km-card {
        border-width: 8px;
        border-radius: 20px !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    .km-content {
        position: relative !important;
        padding: 0 15px 20px;
        height: auto !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    .km-form-content {
        display: flex !important;
        border: 12px solid #72B1F6;
        border-radius: 15px;
    }
    .km-form-content.hide {
        display: none !important;
    }
    .km-result-content {
        display: none !important;
    }
    .km-result-content.show {
        display: flex !important;
    }
    .km-tabs {
        flex-direction: row;
        gap: 8px;
    }
    .km-tab {
        font-size: 12px;
        padding: 8px 10px;
        min-height: 38px;
    }
    .km-field label {
        font-size: 14px;
    }
    .km-field select {
        height: 42px;
        font-size: 12px;
        padding: 8px 10px;
    }
    .km-btn {
        width: 100%;
        height: 44px;
        font-size: 13px;
        box-shadow: 0 4px 0 #0A4A9E;
    }
    .km-calculator-wrapper .km-claim-btn,
    .km-inline-wrapper .km-claim-btn {
        width: 100%;
        max-width: 100%;
        height: 42px;
        font-size: 14px;
        line-height: 38px;
        margin: 12px auto;
    }
    .refund-amount {
        font-size: 28px;
    }
    .result-inner h2 {
        font-size: 16px;
    }
    .km-range-footer {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    #km_salary_val, #km_inline_salary_val {
        font-size: 11px;
        padding: 3px 8px;
    }
    .km-range-limit {
        font-size: 10px;
    }
    .km-header-subtitle {
        font-size: 24px;
        line-height: 30px;
        text-align: center;
    }
    .tr-cal {
        max-width: 193px;
        margin: 0 auto;
    }
    .km-inline-header h2 {
        font-size: 12px;
        text-align: center;
    }
    .km-header-description {
        font-size: 12px;
        text-align: center;
        margin-top: 12px;
    }
    .km-result-box {
        height: 380px;
        padding: 20px 15px;
        border-width: 10px;
        border-radius: 20px !important;
        overflow: visible;
    }
    .km-result-box h3 {
        font-size: 16px;
        font-weight: 700;
    }
    .km-inline-result {
        font-size: 36px;
    }
    .disclaimer-inline {
        font-size: 11px;
    }
    .km-inline-wrapper .bottom-image,
    .km-calculator-wrapper .bottom-image {
       /* max-width: 75px;
        bottom: -38px;  
		*/
    }
    .km-inline-right {
        height: 450px;
        overflow: visible;
    }
}

@media (min-width: 480px) and (max-width:675px) {
  .km-inline-wrapper .bottom-image, .km-calculator-wrapper .bottom-image {
    bottom: -74px;
    max-width: 140px;
  }
}


/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
    .km-card {
        border-width: 2px;
    }
    .km-form-content {
        border: 10px solid #72B1F6;
    }
                                 
    .km-content {
 padding: 30px 12px 15px;
        border-radius: 20px; 
                                 }
    .km-tab {
        font-size: 11px;
        padding: 5px 8px;
    }
    .refund-amount, .km-inline-result {
        font-size: 24px;
    }
    .km-btn {
        height: 38px;
        font-size: 12px;
    }
    .km-calculator-wrapper .km-claim-btn,
    .km-inline-wrapper .km-claim-btn {
        width: 80%;
        height: 38px;
        font-size: 13px;
        line-height: 34px;
    }
    .km-field select {
        height: 38px;
        font-size: 11px;
        padding: 6px 8px;
    }
    .km-field label {
        font-size: 13px;
    }
    .result-inner h2 {
        font-size: 15px;
    }
    .km-result-box {
       /* height: 360px;*/
        padding: 15px;
        border-width: 8px;
    }
    .km-header-subtitle {
        font-size: 20px;
        line-height: 26px;
    }
    .km-header-description {
        font-size: 11px;
    }
    .disclaimer-inline {
        font-size: 10px;
    }
    .km-clear-link {
        font-size: 11px;
    }
    .km-inline-wrapper .bottom-image,
    .km-calculator-wrapper .bottom-image {
      /*  max-width: 60px;
        bottom: -30px;   */
    }
    .km-inline-right {
        height: 420px;
        overflow: visible;
    }
    .km-result-box{
      /*  height: 330px;*/
    }
}

/* iphone 15 (393px) */
@media (max-width: 394px){
    .km-inline-right {
        height: 400px;
    }
    .km-result-box{
       /* height: 330px;*/
    }
    .km-inline-wrapper .bottom-image,
    .km-calculator-wrapper .bottom-image {

    }
}

/* Extra small (≤ 375px) */
@media (max-width: 375px) {
    .km-result-box {
    /*    height: 350px;*/
        padding: 12px;
    }
    .km-inline-wrapper .bottom-image,
    .km-calculator-wrapper .bottom-image {
bottom: -62px;
    max-width: 120px;
    }
    .km-inline-right {
        height: 400px;
    }
    .km-result-box{
       /* height: 330px;*/
    }
}

/* ===== MODAL POPUP STYLES ===== */
.km-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.km-modal-content {
    position: relative;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    max-width: 750px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 35px;
    padding: 30px 35px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    font-family: 'Satoshi', sans-serif;
}
.km-modal-close {
    position: absolute;
    right: 22px;
    top: 18px;
    font-size: 32px;
    cursor: pointer;
    color: #102A49;
    font-weight: bold;
    transition: 0.2s;
    z-index: 10;
}
.km-modal-close:hover {
    color: #0E74E8;
}
/* Form inside modal */
.km-claim-form .double-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.km-claim-form .field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.km-claim-form .field-label {
    font-weight: 600;
    font-size: 14px;
    color: #102A49;
}
.km-claim-form .required-asterisk {
    color: #c5283d;
    margin-left: 3px;
}
.km-claim-form input,
.km-claim-form select {
    padding: 10px 14px;
    border: 1.5px solid #cfdde8;
    border-radius: 18px;
    font-size: 14px;
    background: #fdfdfe;
}
.radio-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 3px;
}
.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}
.industry-checkbox-vertical {
    background: #f9fbfd;
    padding: 14px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}
.industry-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.consent-box {
    background: #f2f6fa;
    border-radius: 24px;
    padding: 16px 20px;
    margin: 20px 0;
}
.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 13px;
}
.km-submit-claim {
    background: #0e74e8cc;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 6px 0 #0a4a9e;
    transition: 0.1s ease;
}
.km-submit-claim:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #0a4a9e;
}
.km-error {
    color: #c5283d;
    font-size: 12px;
    margin-top: 6px;
}
.km-form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
}
.thankyou-title {
    font-size: 2rem;
    font-weight: 700;
    color: #102A49;
    margin: 15px 0 8px;
}
.character_illustration img {
    max-width: 150px;
    border-radius: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
@media (max-width: 680px) {
    .km-modal-content {
        padding: 20px;
        width: 95%;
    }
    .km-claim-form .double-field {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .thankyou-title {
        font-size: 1.6rem;
    }
    .character_illustration img {
        max-width: 110px;
    }
}
.km-modal[style*="display: block"],
.km-modal[style*="display: flex"] {
    display: flex !important;
}
/* Hide scrollbar for modal content but keep scrolling functional */
.km-modal-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.km-modal-content::-webkit-scrollbar {
    display: none;
}
body.km-modal-open {
    overflow: hidden;
}

/* ===== MODAL RESPONSIVE FIXES ===== */

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .km-modal-content {
        width: 92% !important;
        max-width: 92% !important;
        padding: 20px !important;
        max-height: 85vh !important;
        border-radius: 28px !important;
    }
    
    .km-modal-content h1 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .km-claim-form .double-field {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .km-claim-form .field-label {
        font-size: 13px !important;
    }
    
    .km-claim-form input,
    .km-claim-form select {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    .radio-stack {
        gap: 6px !important;
    }
    
    .industry-checkbox-vertical {
        padding: 10px !important;
        gap: 6px !important;
    }
    
    .consent-box {
        padding: 12px 15px !important;
        margin: 12px 0 !important;
    }
    
    .checkbox-line {
        gap: 8px !important;
        margin-bottom: 10px !important;
        font-size: 12px !important;
    }
    
    .km-submit-claim {
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    .thankyou-title {
        font-size: 1.5rem !important;
    }
    
    .character_illustration img {
        max-width: 100px !important;
    }
    
    .km-modal-close {
        right: 15px !important;
        top: 10px !important;
        font-size: 28px !important;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .km-modal-content {
        width: 95% !important;
        padding: 18px !important;
        border-radius: 24px !important;
    }        
    
    .km-modal-content h1 {
        font-size: 1rem !important;
    }
    
    .km-claim-form .field-label {
        font-size: 12px !important;
    }
    
    .km-claim-form input,
    .km-claim-form select {
        padding: 7px 10px !important;
        font-size: 12px !important;
        border-radius: 14px !important;
    }
    
    .radio-option {
        font-size: 12px !important;
    }
    
    .industry-check-row label {
        font-size: 12px !important;
    }
    
    .consent-header {
        font-size: 11px !important;
    }
    
    .checkbox-line span {
        font-size: 11px !important;
    }
    
    .km-submit-claim {
        padding: 9px !important;
        font-size: 13px !important;
        box-shadow: 0 4px 0 #0a4a9e !important;
    }
    
    .thankyou-title {
        font-size: 1.2rem !important;
    }
    
    .character_illustration img {
        max-width: 80px !important;
    }
    
    .km-modal-close {
        right: 12px !important;
        top: 8px !important;
        font-size: 24px !important;
    }
                                 
                                 
                                 
                                 
                                    .km-tabs {
        min-height: 0;
    }

    .top-cal,
    .top-cal .tr-cal,
    .top-cal .tr-cal h2 {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .top-cal .tr-cal {
        max-width: 208px;
        width: 100%;
    } 
}