.userprofile_kodi{
    padding: 60px 0px 30px;
    background-color: #f0feff;
}
.form-title{
    border-bottom: 1px solid rgb(223, 223, 223);
    margin-bottom: 25px;
    color: rgb(52, 64, 85);
}
.form-title h2{
    font-size: 22px;
    line-height: 38px;
    font-family: 'Poppins-Medium', sans-serif;
    color: rgb(51, 51, 51);
}
.form-floating > .bi-calendar-date + .datepicker_input + label {
  padding-left: 3.5rem;
  z-index: 3;
}
.km-profileImg .storeImg {
    width: 100%;
    height: 100%;
    background-size: cover;
    display: inline-block;
    background-color: var(--primary-color);
}
.coverImg {
    width: 100%;
    height: 100%;
    background-size: cover;
    display: inline-block;
    border-radius: 65;
    background-color: #ddd;
}
.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
    padding: 0;
    z-index: 100;
    text-indent: -999px;
}
.km-profileImg {
    width: 13rem;
    height: 13rem;
    overflow: hidden;
    border-radius: 65%;
    border: 2px solid #ddd;
    left: 1.25rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .1), 0 8px 24px rgba(0, 0, 0, .15);
    position: relative;
    margin: 0 auto 1.5rem;
}
.editLogo {
    position: absolute;
    padding: .875rem;
    text-align: center;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
}
/*#multi-step-form-container {
    margin-top: 5rem;
}*/
.text-center {
    text-align: center;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.pl-0 {
    padding-left: 0;
}
.button {
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transform: 0.3s;
}
.button:hover {
    border: 1px solid var(--secondary-color);
    background-color: var(--secondary-color);
}
.btn_next{
    box-shadow: rgb(143, 163, 181) 0px 0px 0px 0px;
    animation: 1.5s ease 0s infinite normal none running pulse;
}
.submit-btn {
    border: 1px solid var(--secondary-color);
    background-color: var(--secondary-color);
    box-shadow: rgb(143, 163, 181) 0px 0px 0px 0px;
    animation: 1.5s ease 0s infinite normal none running pulse;
}
/*.pro-ave-yes {
    width: 14px;
    height: 14px;
    background: rgb(143, 163, 181);
    display: inline-block;
    border-radius: 50px;
    border: 2px solid rgb(255, 255, 255);
    position: relative;
    box-shadow: rgb(143, 163, 181) 0px 0px 0px 0px;
    animation: 1s cubic-bezier(0.4, 0, 0, 1) 0s infinite normal none running pulse;
}*/

@-webkit-keyframes pulse {
    100% {
        box-shadow: rgba(255, 0, 127, 0) 0px 0px 0px 15px;
    }
}

@keyframes pulse {
    100% {
        box-shadow: rgba(255, 0, 127, 0) 0px 0px 0px 15px;
    }
}

.mt-3 {
    margin-top: 2rem;
}
.d-none {
    display: none;
}
.form-step {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 3rem;
    background-color: #fff;
}
.font-normal {
    font-weight: normal;
}
ul.form-stepper {
    counter-reset: section;
    margin-bottom: 3rem;
}
ul.form-stepper .form-stepper-circle {
    position: relative;
}
ul.form-stepper .form-stepper-circle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
}
.form-stepper-horizontal {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
ul.form-stepper > li:not(:last-of-type) {
    margin-bottom: 0.625rem;
    -webkit-transition: margin-bottom 0.4s;
    -o-transition: margin-bottom 0.4s;
    transition: margin-bottom 0.4s;
}
.form-stepper-horizontal > li:not(:last-of-type) {
    margin-bottom: 0 !important;
}
.form-stepper-horizontal li {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}
.form-stepper-horizontal li:not(:last-child):after {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 1px;
    content: "";
    top: 32%;
}
.form-stepper-horizontal li:after {
    background-color: #dee2e6;
}
.form-stepper-horizontal li.form-stepper-completed:after {
    background-color: var(--primary-color);
}
.form-stepper-horizontal li:last-child {
    flex: unset;
}
ul.form-stepper li a .form-stepper-circle {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 0;
    line-height: 1.7rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.38);
    border-radius: 50%;
}
.form-stepper .form-stepper-active .form-stepper-circle {
    background-color: var(--primary-color);
    color: #fff;
}
.form-stepper .form-stepper-active .label {
    color: var(--primary-color);
}
.form-stepper .form-stepper-active .form-stepper-circle:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.form-stepper .form-stepper-unfinished .form-stepper-circle {
    background-color: #ffffff;
    border: 1px solid #e0e5e5;
}
.form-stepper .form-stepper-completed .form-stepper-circle {
    background-color: #0e9594;
    color: #fff;
}
.form-stepper .form-stepper-completed .label {
    color: #0e9594 !important;
}
.form-stepper .form-stepper-completed .form-stepper-circle:hover {
    background-color: #0e9594 !important;
    color: #fff !important;
}
.form-stepper .form-stepper-active span.text-muted {
    color: #fff !important;
}
.form-stepper .form-stepper-completed span.text-muted {
    color: #fff !important;
}
.form-stepper .label {
    font-size: 1rem;
    margin-top: 0.5rem;
}
.form-stepper a {
    cursor: default;
    text-decoration: none;
    color: var(--primary-color);
}
.userprofile_kodi h1{
    font-size: 20px;
    font-family: 'Poppins-SemiBold', sans-serif;
}

#kattam_builder_wrap {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.kattam-builder {
  background: #f0feff;
  border-radius: 16px;
  border: 1px solid #9ad1d5;
  padding: 24px;
}
.kattam-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
  justify-content: center;
}
.kattam-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kattam-card-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 0;
}
.kattam-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-template-areas:
    "h12 h1 h2 h3"
    "h11 center center h4"
    "h10 center center h5"
    "h9  h8 h7 h6";
  background: #ffffff;
  border: 2px solid #1f2937;
  border-radius: 10px;
  width: 100%;
  max-width: 380px;
  min-width: unset;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 auto;
}
.kattam-divider {
  position: absolute;
  background: #1f2937;
  pointer-events: none;
  z-index: 2;
}
.kattam-divider.vertical-left {
  top: 0;
  bottom: 0;
  left: 25%;
  width: 2px;
  transform: translateX(-1px);
}
.kattam-divider.vertical-right {
  top: 0;
  bottom: 0;
  left: 75%;
  width: 2px;
  transform: translateX(-1px);
}
.kattam-divider.horizontal-top {
  left: 0;
  right: 0;
  top: 25%;
  height: 2px;
  transform: translateY(-1px);
}
.kattam-divider.horizontal-bottom {
  left: 0;
  right: 0;
  top: 75%;
  height: 2px;
  transform: translateY(-1px);
}
.kattam-divider.vertical-mid-top,
.kattam-divider.vertical-mid-bottom {
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
}
.kattam-divider.vertical-mid-top {
  top: 0;
  height: 25%;
}
.kattam-divider.vertical-mid-bottom {
  top: 75%;
  height: 25%;
}
.kattam-divider.horizontal-mid-left,
.kattam-divider.horizontal-mid-right {
  top: 50%;
  height: 2px;
  transform: translateY(-1px);
}
.kattam-divider.horizontal-mid-left {
  left: 0;
  width: 25%;
}
.kattam-divider.horizontal-mid-right {
  right: 0;
  width: 25%;
}
.kattam-house {
  position: relative;
  padding: 14px 10px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 5;
}
.kattam-house .house-number {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
}
.kattam-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(31, 41, 55, 0.3);
  background: transparent;
  text-align: center;
  font-size: 14px;
  padding: 2px 4px;
  color: #1f2937;
}
.kattam-input:focus {
  outline: none;
  border-color: #b5891d;
}
.kattam-center {
  grid-area: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d3fcff;
  color: #1f2937;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  z-index: 4;
}
.kattam-house-12 { grid-area: h12; }
.kattam-house-1  { grid-area: h1; }
.kattam-house-2  { grid-area: h2; }
.kattam-house-3  { grid-area: h3; }
.kattam-house-11 { grid-area: h11; }
.kattam-house-4  { grid-area: h4; }
.kattam-house-10 { grid-area: h10; }
.kattam-house-5  { grid-area: h5; }
.kattam-house-9  { grid-area: h9; }
.kattam-house-8  { grid-area: h8; }
.kattam-house-7  { grid-area: h7; }
.kattam-house-6  { grid-area: h6; }
.kattam-planets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px 16px;
}
.kattam-planet label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  display: block;
}
.kattam-planet select {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #e5c676;
  padding: 4px 6px;
  font-size: 0.85rem;
  background: #fff;
}
@media (max-width: 767px) {
  .kattam-builder {
    padding: 16px;
  }
  .kattam-card {
    min-width: unset;
    width: 100%;
  }
  .kattam-planets {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

.is-invalid {
    border-color: #dc3545 !important;
}
.error-msg {
    font-size: 0.85rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
}

.select2-container .select2-selection--single {
    height: 50px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 49px;
}

/* New Clickable Kattam Styles */
.kattam-clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.kattam-clickable:hover {
  background-color: rgb(0, 238, 255, 0.2);
}
.kattam-clickable.selected {
    background-color: #0e9594 !important;
    box-shadow: inset 0 0 0 2px #00747c;
}
.kattam-clickable.selected .planet-code-display {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.kattam-cell-content {
  position: absolute;
  top: 18px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  gap: 2px;
  align-content: center;
  justify-items: center;
  overflow: hidden;
}
.planet-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: rgb(211, 252, 255);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #005c63;
  text-align: center;
}

/* Legend Panel Styles */
.kattam-legend {
  background: #fff;
  border: 2px solid #9ad1d5;
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 20px;
}
.kattam-legend-title {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  font-size: 1rem;
}
.kattam-legend-instruction {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 12px;
}
.kattam-planet-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kattam-planet-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f0feff;
  border: 1px solid #83bfc3;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}
.kattam-planet-btn:hover {
  background: #c4fbff;
  border-color: #77bdc2;
  transform: translateX(2px);
}
.kattam-planet-btn:active {
  transform: scale(0.98);
}
.planet-code {
  font-weight: 700;
  font-size: 1rem;
  color: #005c63;
  min-width: 30px;
}
.planet-label {
  font-size: 0.75rem;
  color: #005c63;
  flex: 1;
  text-align: right;
}

@media (max-width: 991px) {
  .kattam-legend {
    position: static;
    margin-top: 20px;
  }
}

/* Additional Responsive Kattam additions */
@media (max-width: 500px) {
  .kattam-board {
    width: 100%;
    border-width: 1px;
  }
  .kattam-house {
    padding: 10px 4px 4px;
  }
  .kattam-house .house-number {
    top: 2px;
    left: 4px;
    font-size: 10px;
  }
  .planet-code-display {
    padding: 1px 2px;
    font-size: 10px;
    margin: 0px;
  }
  .kattam-center {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }
}
@media (max-width: 380px) {
  .kattam-charts {
    grid-template-columns: 1fr;
  }
  .kattam-board {
    width: 100%;
  }
  .kattam-house {
    padding: 8px 2px 2px;
  }
  .kattam-house .house-number {
    font-size: 8px;
  }
  .planet-code-display {
    font-size: 9px;
  }
  .kattam-center {
    font-size: 0.7rem;
    letter-spacing: 0;
  }
}