﻿/* Plan selector - IMPROVED VERSION */
.plan-choices {
  display: grid;
  gap: 1.5rem; /* Increased from 1rem */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Wider cards */
  margin-bottom: 1.5rem;
}

.orderpage .plan-choices {
  gap: 0;
}

.plan-card-wrapper {
  position: relative;
}

.plan-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card {
  --accent: #4D309E;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Increased from 0.55rem */
  padding: 1.5rem; /* Increased from 1rem 1.15rem */
  border-radius: 1rem;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(77,48,158,0.25);
  cursor: pointer;
  transition: background .35s, box-shadow .35s, border-color .35s, transform .35s;
  min-height: 200px; /* Increased from 168px */
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.18);
}

  .plan-card:hover {
    background: rgba(255,255,255,0.96);
    border-color: rgba(77,48,158,0.45);
    box-shadow: 0 10px 26px -10px rgba(0,0,0,0.30);
    transform: translateY(-3px);
  }

  .plan-input:focus-visible + .plan-card,
  .plan-card:focus {
    outline: 3px solid rgba(77,48,158,0.55);
    outline-offset: 2px;
  }

.plan-input:checked + .plan-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(245,242,255,0.95));
  border-color: var(--accent);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.35), 0 4px 10px -2px rgba(0,0,0,0.22);
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Increased from 0.25rem */
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(77,48,158,0.15); /* Add visual separator */
}

.plan-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.plan-title {
  font-size: 1.4rem; /* Increased from 1.25rem */
  font-weight: 700; /* Bolder from 600 */
  color: #432480;
  letter-spacing: .2px;
  line-height: 1.2;
}

.plan-subtitle {
  font-size: 0.95rem; /* Slightly smaller from 1rem */
  line-height: 1.4;
  color: #6b5d8c; /* Lighter for less dominance */
  font-weight: 400; /* Reduced from 500 */
  margin-top: 0.25rem;
}

.plan-price-line {
  font-size: 1.1rem; /* Increased from 0.95rem */
  font-weight: 700; /* Bolder from 600 */
  color: #4D309E; /* Stronger color */
  padding: 0.5rem 0;
  line-height: 1.3;
}

.plan-price-secondary {
  font-size: 0.9rem;
  font-weight: 400; /* Reduced from 500 */
  color: rgba(77,48,158,0.6); /* Lighter */
  margin-top: 0.25rem;
  display: block;
}

.plan-note {
  margin-top: 1rem; /* Increased from auto */
  padding-top: 1rem;
  border-top: 1px solid rgba(77,48,158,0.1); /* Visual separator */
  font-size: 0.875rem; /* Slightly larger from 0.85rem */
  line-height: 1.5; /* More breathing room from 1.25 */
  color: #5b5670;
  max-height: 280px; /* Limit height */
  overflow-y: auto; /* Scrollable if needed */
  scrollbar-width: thin;
  scrollbar-color: rgba(77,48,158,0.3) transparent;
}

  /* Improve feature list styling within plan-note */
  .plan-note ul {
    margin: 0.5rem 0;
    padding-left: 0;
  }

  .plan-note li {
    padding: 0.35rem 0; /* More spacing between items */
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }

    .plan-note li i {
      flex-shrink: 0;
      margin-top: 0.1rem;
      font-size: 1.1rem;
    }

  .plan-note strong {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #432480;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

    .plan-note strong:first-child {
      margin-top: 0;
    }

  /* Collapsed view for long content */
  .plan-note.is-collapsed {
    max-height: 150px;
    position: relative;
  }

    .plan-note.is-collapsed::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 40px;
      background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.95));
      pointer-events: none;
    }

.plan-radio-indicator {
  width: 22px; /* Slightly larger from 20px */
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.plan-input:checked + .plan-card .plan-radio-indicator {
  box-shadow: 0 0 0 4px rgba(77,48,158,0.15);
}

  .plan-input:checked + .plan-card .plan-radio-indicator::after {
    content: "";
    width: 12px; /* Slightly larger from 10px */
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    transform: scale(1);
    transition: transform .25s;
  }

.plan-radio-indicator::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: scale(0);
  transition: transform .25s;
}

/* Scrollbar for plan-note */
.plan-note::-webkit-scrollbar {
  width: 6px;
}

.plan-note::-webkit-scrollbar-track {
  background: transparent;
}

.plan-note::-webkit-scrollbar-thumb {
  background: rgba(77,48,158,0.3);
  border-radius: 3px;
}

  .plan-note::-webkit-scrollbar-thumb:hover {
    background: rgba(77,48,158,0.5);
  }

@media (max-width: 640px) {
  .plan-card {
    min-height: 180px;
    padding: 1.25rem 1rem;
  }

  .plan-title {
    font-size: 1.15rem;
  }

  .plan-subtitle {
    font-size: 0.85rem;
  }

  .plan-price-line {
    font-size: 1rem;
  }

  .plan-note {
    font-size: 0.8rem;
    max-height: 200px;
  }
}

/* Root container to manage stacking context */
/* Root container with static background */
.layout-root {
  background-image: url("/assets/img/account-bg-poster.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .account-layout-root::before {
    /* Slightly reduce washout on small screens for perceived clarity */
    background: rgba(255,255,255,0.45);
  }

  .account-layout-root .container,
  .account-layout-root .b-layout-content {
    padding: 0.85rem;
    border-radius: 0.75rem;
  }
}

/* High contrast mode preference: reduce blur for sharper edges */
@media (prefers-contrast: more) {
  .account-layout-root::before {
    backdrop-filter: brightness(1.05);
    -webkit-backdrop-filter: brightness(1.05);
  }
}

.account-layout-root {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate; /* Ensures backdrop-filter effects remain contained */
}

  .account-layout-root a {
    text-decoration: none;
  }

  .account-layout-root .section-title h2 {
    font-size: 0.9rem;
  }

  .account-layout-root .section-title p {
    font-size: 0.9rem;
  }

  /* Fullscreen background video */
  .account-layout-root .bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
  }

  /* Optional overlay for contrast (tweak background / opacity as needed) */
  .account-layout-root .bg-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(40,25,85,0.45), rgba(15,10,30,0.75));
    z-index: 1;
    pointer-events: none;
  }

  /* Elevation + glass/opaque hybrid style shared by card and brand badge */
  .account-card,
  .account-layout-root .brand-badge {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.35), 0 4px 8px -2px rgba(0,0,0,0.25);
    border-radius: 1rem;
    transition: transform .45s cubic-bezier(.25,.8,.25,1), box-shadow .45s cubic-bezier(.25,.8,.25,1), background-color .4s;
  }

    /* Hover lift */
    .account-card:hover,
    .account-layout-root .brand-badge:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 46px -10px rgba(0,0,0,0.5), 0 8px 18px -4px rgba(0,0,0,0.35);
    }

  /* Brand badge specific layout */
  .account-layout-root .brand-badge {
    padding: .85rem 1.25rem;
    line-height: 1;
  }

  .account-layout-root .brand-title {
    font-size: 2rem;
    font-weight: 600;
    color: #4D309E;
    letter-spacing: .5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
    white-space: nowrap;
  }

  /* Logo adjustments */
  .account-layout-root .brand-logo {
    border-radius: 14px;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.4);
  }

.brand-logo-mobile {
  border-radius: 6px;
}

/* Ensure internal Card elements keep intended spacing & backgrounds */
.account-card .card-header,
.account-card .card-body,
.account-card .card-footer {
  background: transparent;
}

/* Scroll area adjustments (optional) */
.account-card .card-body {
  scrollbar-width: thin;
  scrollbar-color: #9c8cc5 transparent;
}

  .account-card .card-body::-webkit-scrollbar {
    width: 8px;
  }

  .account-card .card-body::-webkit-scrollbar-track {
    background: transparent;
  }

  .account-card .card-body::-webkit-scrollbar-thumb {
    background: linear-gradient(#c2b4e8,#8d75d6);
    border-radius: 4px;
  }

/* Mobile tweaks */
@media (max-width: 992px) {
  .account-layout-root .brand-badge {
    display: none;
  }

  .account-card {
    backdrop-filter: blur(4px);
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .account-card, .account-layout-root .brand-badge {
    transition: none;
  }

    .account-card:hover,
    .account-layout-root .brand-badge:hover {
      transform: none;
    }

  .account-layout-root .bg-video {
    animation: none;
  }
}

/* Bootstrap Floating Label Fixes */
.form-floating {
  position: relative;
}

  .form-floating > .form-control {
    border: 1px solid rgba(77, 48, 158, 0.35);
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 0.25s, box-shadow 0.25s;
    height: 50px !important;
  }

    .form-floating > .form-control:focus {
      border-color: #4D309E;
      box-shadow: 0 0 0 0.2rem rgba(77, 48, 158, 0.15);
      outline: 0;
    }

    .form-floating > .form-control.invalid,
    .form-floating > .form-control:invalid {
      border-color: #dc3545;
    }

      .form-floating > .form-control.invalid:focus,
      .form-floating > .form-control:invalid:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
      }

  .form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 5px;
    pointer-events: none;
    transform-origin: 0 0;
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
    color: rgba(77, 48, 158, 0.65);
  }

  .form-floating > .form-control:focus ~ label,
  .form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: #4D309E;
  }

  .form-floating > .form-control.invalid ~ label,
  .form-floating > .form-control:invalid ~ label {
    color: #dc3545;
  }