@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");

/* Declare Cascade Layers */
@layer base, elements, components, layouts, utilities;

@layer base {
  :root {
    --font-title: "Roboto Flex", sans-serif;
    --font-body: "Roboto Flex", sans-serif;

    /* Colors */
    --primary: #4d6bb3;
    --primary-hover: #3a5796;
    --primary-light: #e6eaf3;

    --bg-page: #f0f2f5;
    --bg-sidebar: #e6eaf3;
    --bg-card: #ffffff;
    --bg-input: #ffffff;

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --border: #cbd5e1;
    --border-focus: #4d6bb3;

    --danger: #ef4444;
    --danger-light: #fee2e2;

    --success: #4d6bb3;
    --success-light: #d1fae5;

    /* Spacing & Borders */
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.05);
    --shadow-md:
      0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --transition:
      background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
      box-shadow 0.15s ease;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
  }
}

@layer elements {
  body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  input,
  select,
  textarea {
    font-family: var(--font-body);
  }
}

@layer layouts {

  .app-container,
  .container {
    max-width: 1600px;
    margin: 20px auto;
    padding: 40px;
  }

  @media (max-width: 1279px) {

    .app-container,
    .container {
      max-width: 1600px;
      margin: 10px auto;
      padding: 10px;
    }
  }

  /* 2-Column Grid Layout */
  .calculator-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
  }

  /* Left Form Column styling */
  /* .form-column {
    background: var(--bg-card);
    padding: 8px 12px;
  } */

  /* Form Row Grid System */
  .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .form-group.full-width {
    grid-column: 1 / -1;
  }

  .btn-group {
    display: flex;
    gap: 8px;
  }

  .form-actions-row {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    justify-content: space-between;
  }

  /* Responsive Layouts */
  @media (max-width: 1279px) {
    .calculator-grid {
      grid-template-columns: 1fr;
      gap: 30px;
      padding: 10px;
    }

    .container {
      margin: 20px auto;
    }
  }

  @media (max-width: 767px) {

    .form-row,
    .radio-card-group {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .form-actions-row {
      flex-direction: column;
    }
  }
}

@layer components {
  .form-main-title {
    font-family: var(--font-title);
    font-size: 25px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 15px;
  }

  /* Input Fields Styling */
  .field-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 3px;
    margin-top: 6px;
    display: block;
  }

  .input-text {
    font-size: 15px;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
  }

  .input-text:hover,
  .select-wrapper select:hover {
    border-color: var(--border-focus);
    outline: none;
    /* box-shadow: 0 0 0 3px rgba(77, 107, 179, 0.15); */
  }

  .input-text:focus,
  .select-wrapper select:focus,
  .input-text:active,
  .select-wrapper select:active {
    outline: none;
    border-color: var(--border-focus);
    /* box-shadow: 0 0 0 3px rgba(77, 107, 179, 0.25); */
  }

  .input-text::placeholder {
    color: #a0aec0;
  }

  /* Modern Select Dropdown */
  .select-wrapper {
    position: relative;
    width: 100%;
  }

  .select-wrapper select {
    width: 100%;
    font-size: 15px;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--bg-input);
    color: var(--text-primary);
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
  }

  .select-wrapper::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-25%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: var(--text-secondary) transparent transparent;
    pointer-events: none;
  }

  /* Radio Card Selector Toggles */
  .radio-card-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .radio-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    position: relative;
  }

  .radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .radio-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
  }

  .radio-indicator::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition);
  }

  .radio-card input[type="radio"]:checked+.card-content .radio-indicator {
    border-color: var(--primary);
  }

  .radio-card input[type="radio"]:checked+.card-content .radio-indicator::after {
    transform: scale(1);
  }

  .radio-card:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
  }

  .radio-card.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
  }

  .radio-card .card-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
  }

  /* Proposer / Member detail Sub-cards */
  .form-section-card {
    background-color: #fafbfc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
  }

  .sub-section-title {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
  }

  /* Dynamic Member Section */

  @media screen and (min-width: 1280px) {
    .members-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }

    .formRowFull {
      grid-template-columns: 1fr 1fr !important;
    }
  }

  .members-header {
    margin-bottom: 16px;
  }

  .btn-sec {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn-sec:hover:not(:disabled) {
    background-color: #e2e8f0;
    color: var(--text-primary);
  }

  .btn-sec:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .member-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Detail cards for family members */
  .member-card-detailed {
    background-color: #fafbfc;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    transition: var(--transition);
    animation: slideIn 0.3s ease-out;
  }

  .remove-corner-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .remove-corner-btn:hover {
    opacity: 1;
    transform: scale(1.1);
  }

  .empty-members {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 30px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-md);
  }

  .tag {
    font-size: 14px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
  }

  .tag.adult {
    background-color: #dbeafe;
    color: #1e40af;
  }

  .tag.child {
    background-color: #fef3c7;
    color: #92400e;
  }

  /* Age Indicator Badge */
  .age-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    background: #eef2f6;
  }

  /* Plan C Coverage Details */
  .coverage-info-card {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
  }

  .coverage-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }

  .coverage-list li {
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
    line-height: 1.4;
  }

  .coverage-list li::before {
    content: "🛡️";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 13px;
  }

  /* Switch Toggle */
  .switch-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafbfc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
  }

  .switch-label-group {
    display: flex;
    flex-direction: column;
  }

  .switch-label-group .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .switch-label-group .desc {
    font-size: 12px;
    color: var(--text-muted);
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
  }

  input:checked+.slider {
    background-color: var(--primary);
  }

  input:checked+.slider:before {
    transform: translateX(24px);
  }

  /* Buttons */
  .btn-submit {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    background-color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn-submit:hover {
    background-color: var(--primary-hover);
  }

  .btn-reset {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    background-color: var(--primary-light);
    border: 1px solid rgba(77, 107, 179, 0.2);
    border-radius: var(--radius-sm);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn-reset:hover {
    background-color: #dbe2ef;
    color: var(--primary-hover);
  }

  .disclaimer-note {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 16px;
    padding: 12px;
    background-color: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
  }

  /* Premium Summary Sidebar (Right Column) */
  .summary-sidebar {
    background-color: var(--bg-sidebar);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .premium-display-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
  }

  .premium-display-card .premium-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
  }

  .premium-display-card .tax-note {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 6px;
    display: block;
  }

  .premium-display-card .premium-price {
    font-family: var(--font-title);
    font-size: 38px;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform 0.2s ease;
  }

  .summary-details-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  @media screen and (min-width: 1280px) {
    .summary-details-group {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
    }

    .summary-details-group> :first-child,
    .summary-details-group> :last-child {
      grid-column: span 2;
    }
  }

  .summary-row {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .summary-icon-box {
    width: 42px;
    height: 42px;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.03);
    flex-shrink: 0;
  }

  .summary-icon-box.text-icon {
    font-weight: 800;
    font-size: 16px;
    font-family: system-ui;
  }

  .summary-icon-box img {
    width: 30px;
    height: auto;
  }

  .summary-text-box {
    display: flex;
    flex-direction: column;
  }

  .summary-text-box .label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
  }

  .summary-text-box .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
  }

  /* Math breakdown layout */
  .sidebar-math-section {
    border-top: 1.5px solid var(--border);
    padding-top: 16px;
    margin-top: 8px;
  }

  .sidebar-math-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
  }

  .breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
  }

  .breakdown-row .member-desc {
    font-weight: 600;
  }

  .breakdown-row .member-sum {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 4px;
  }

  .breakdown-row .member-premium {
    font-weight: 700;
    color: var(--text-primary);
  }

  .math-math-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px dashed var(--border);
    padding-top: 12px;
  }

  .sidebar-math-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: var(--text-secondary);
  }

  .badge {
    font-size: 10px;
    font-weight: 700;
    background-color: var(--success-light);
    color: var(--success);
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 4px;
  }

  /* Interactive Dialog / Alerts (Glassmorphic) */
  .kshema-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .kshema-alert-box {
    background: rgba(20, 27, 45, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 480px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .alert-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 2.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
  }

  .alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
  }

  .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
  }

  .alert-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
  }

  .alert-message {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.98rem;
    margin-bottom: 30px;
  }

  .breakdown-item {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Reusable Component Classes (Replacing Inline Styles) */
  .addons-card {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(77, 107, 179, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
  }

  .addons-heading {
    margin: 0 0 12px 0;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
  }

  .addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
  }

  .switch-card-compact {
    padding: 8px 12px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .switch-card-micro {
    padding: 6px 10px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .weblink-container {
    display: none;
    margin-top: 16px;
    padding: 16px;
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius-md);
    background: rgba(77, 107, 179, 0.05);
    text-align: center;
  }

  .weblink-text {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
  }

  .weblink-link {
    display: block;
    text-decoration: none;
    text-align: center;
    margin: 0 auto;
    width: max-content;
  }

  .member-card-title {
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
  }

  @media screen and (min-width: 1280px) {
    .member-form-row {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
    }
  }

  .member-addons-section {
    margin-top: 12px;
    grid-column: span 2;
  }

  .member-addons-header {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 13px;
  }

  .member-addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .breakdown-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

@layer utilities {
  .member-card-detailed.removing {
    opacity: 0;
    transform: translateX(20px);
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  .error-msg:not(:empty) {
    position: absolute;
    top: 0;
    left: 0;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .error-msg:empty {
    display: none;
  }

  @keyframes tooltipFadeIn {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .field-label:has(+ input[required])::after,
  .field-label:has(+ .select-wrapper select[required])::after {
    content: " *";
    color: var(--danger);
  }

  .kshema-alert-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .kshema-alert-overlay.visible .kshema-alert-box {
    transform: scale(1);
  }

  .peril-value {
    white-space: normal;
    word-break: break-word;
  }

  .back-dashboard-container {
    margin-bottom: 20px;
  }

  .back-dashboard-link {
    text-decoration: none;
  }

  .sidebar-math-row.discount {
    color: var(--success);
    font-weight: 500;
  }

  .pop-update {
    animation: popScale 0.25s ease-out;
  }

  .member-form-group-double {
    grid-column: span 2;
  }

  .breakdown-item-bold {
    font-weight: 600;
  }

  /* Animations */
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes popScale {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.08);
      color: var(--primary);
    }

    100% {
      transform: scale(1);
    }
  }


  /* Premium Footer styles */
  .footer {
    background: #0a2616;
    border-top: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
    width: 100%;
  }

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(77, 107, 179, 0.1);
  }

  .footer-brand .footer-logo {
    height: 40px;
    margin-bottom: 16px;
  }

  .footer-brand p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .footer-links h4,
  .footer-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
  }

  .footer-links ul,
  .footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-links ul li,
  .footer-info ul li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
  }

  .footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
  }

  .footer-links ul li a:hover {
    color: var(--primary);
  }

  .footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .text-muted {
    color: #6c757d !important;
    font-family: inherit;
    line-height: 30px;
    font-size: 18px;
  }

  .footer-menu li a {
    font-size: 18px;
    line-height: 30px;
    color: #829ED1;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
  }

  .footer-menu li a:hover {
    color: #fff;
  }


  .fHeading {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #ffffff;

  }

  footer .icon {
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: #7ba2e1;
    color: #0b2617;
    text-decoration: none;
  }

  footer ul.social-list a:hover {
    opacity: 0.7;
  }

  footer .contact-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7ba2e1;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    line-height: 50px;
  }

  footer .contact-info a:hover {
    color: #fff;
  }


  ul.social-list {
    display: flex;
    gap: 10px;
  }


  ul {
    list-style: none;
    /* Removes bullets */
    padding: 0;
    /* Removes default indentation */
    margin: 0;
    /* Removes default spacing */
  }


  .bimaLogo a:hover {
    opacity: 0.7;

  }

  .social-media {
    font-size: 18px;
  }

  @media screen and (min-width: 1280px) {

    .rowOneColFooter {
      display: grid;
      grid-template-columns: 50% 50%;
    }

    .columTwo {
      display: flex;
    }

    .rowTwoFooter {
      display: flex;
      line-height: normal;
      margin-top: 18px;
      font-size: 16px;
      color: #7ba2e1;
      margin-bottom: 20px;

    }

    .fcat {
      border-right: 1px solid #ccc;
      margin: 0px 10px;
      border-left: 1px solid #ccc;
      padding: 0px 10px;
    }

    .small-menu {
      column-count: 2;
    }



  }

  @media screen and (max-width:1279px) {
    .rowTwoFooter {
      margin-top: 18px;
      font-size: 16px;
      color: #729ed1;
      margin-bottom: 20px;
    }



  }


  /* Breadcrumb Navigation styles */
  .breadcrumb {
    margin: 20px 0 30px 0;
    padding: 10px 16px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    display: inline-block;
  }

  .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
  }

  .breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
  }

  .breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: var(--text-secondary);
  }

  .breadcrumb li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .breadcrumb li a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
  }

  .breadcrumb li.active {
    color: var(--text-primary);
    font-weight: 600;
  }

  /* Badge styling */
  .product-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 5px;
    letter-spacing: 0.05em;
    display: inline-block;
  }

  .badge-crop {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
  }

  .badge-health {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
  }

  .badge-motor {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.2);
  }

  .badge-pa {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.2);
  }
}


/* Safely target your specific element using its class */
input[type="date"].input-text {
  /* Strips standard styling bugs without triggering console/syntax errors */
  -webkit-appearance: none;
  appearance: none;

  /* Reset the display engine to prevent iOS 'inline-flex' bloating */
  display: inline-block;
  box-sizing: border-box;

  /* Set explicit vertical sizing to force iOS to match Android */
  height: 40px;
  line-height: normal;
}

/* Strip hidden baseline margins inside the WebKit wrapper */
input[type="date"].input-text::-webkit-datetime-edit {
  padding: 0px !important;
  margin: 0px;
}

/* Ensures the dynamic text string centers perfectly within the 40px boundary */
input[type="date"].input-text::-webkit-datetime-edit-fields-wrapper {
  padding: 0px;
}