 /* <style> */

 /* .cf-turnstile {
  display: flex;
  justify-content: center;
} */

        /* body {
                min-height: 100vh;
                background: url('/images/background.png') !important;
                background-size: cover !important;;    
                background-attachment: fixed; 
                color: #111827;     
                display: flex;
                align-items: flex-start;
                justify-content: center;
                padding: 40px 16px;
        }

        body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.80); 
        backdrop-filter: blur(2px);         
        z-index: -1;
    } */

    html, body {
    height: 100%;
}

body {
    position: relative;          /* create stacking context */
    z-index: 0;
    min-height: 100vh;
    background: #f3f4f6 url('/images/background.png') no-repeat center top;
    background-size: cover;      /* Make it fill the screen */
    background-attachment: fixed;
    color: #111827;              /* slate-900 */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
}

/* Light white overlay on top of background but behind content */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.20);
    backdrop-filter: blur(1px);
    z-index: -1;                 /* behind body content, but body now has z-index:0 */
}


        .card-modern {
                border-radius: 18px;
                border: 1px solid rgba(148, 163, 184, 0.35);
                box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
                overflow: hidden;
                background: #ffffff;
        }

        .card-header-gradient {
                background: #ffffff;
                color: #111827;
                border-bottom: 3px solid #7c2d12; /* maroon bar */
        }

        .form-control,
        .form-select {
            border-radius: 999px;
            padding-inline: 1.25rem;
        }

        .form-control:focus,
        .form-select:focus {
            box-shadow: 0 0 0 0.15rem rgba(185, 28, 28, 0.35);
            border-color: #b91c1c;
        }

        .btn-pill {
            border-radius: 999px;
            padding-inline: 2rem;
            font-weight: 600;
        }

        .badge-soft {
            background-color: rgba(248, 250, 252, 0.15);
            border-radius: 999px;
            padding: 0.3rem 0.75rem;
            font-size: 0.75rem;
        }

        .required::after {
            content: " *";
            color: #ef4444;
            font-weight: 600;
        }

        /* Membership chooser */
        .membership-card {
    border-radius: 18px;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #111827;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
        }

        .membership-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.15);
    border-color: #7c2d12;        /* maroon border on hover */
    background-color: #fdf7f3;    /* slightly warm white */
        }

        .membership-card.selected {
    border-color: #7c2d12;
    background: linear-gradient(135deg, #fefce8, #fef9c3); /* soft gold wash */
    box-shadow: 0 16px 30px rgba(124, 45, 18, 0.25);
        }

        .membership-pill {
                display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(124, 45, 18, 0.06); /* light maroon tint */
    color: #7c2d12;
    font-size: 0.75rem;
    font-weight: 600;
        }

        .membership-title {
                font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
        }

        .membership-desc {
                font-size: 0.875rem;
    color: #4b5563;
    opacity: 0.95;
        }

        .small-helper {
                font-size: 0.8rem;
    color: #6b7280;
        }

        .chip-label {
                display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(124, 45, 18, 0.06);
    font-size: 0.75rem;
    font-weight: 500;
    color: #7c2d12;
        }

        #registration-card {
            opacity: 0;
            transform: translateX(18px);
            display: none;
        }

        #registration-card.card-visible {
            opacity: 1;
        }

        #membership-chooser {
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .fade-out {
            opacity: 0;
            transform: translateY(-10px);
        }

        .hidden-force {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            height: 0 !important;
            width: 0 !important;
            overflow: hidden !important;
            pointer-events: none !important;
            position: absolute !important;
        }

        /* Slide animations */
        .slide-in-from-right {
            animation: slideInFromRight 0.4s ease forwards;
        }

        .slide-out-to-left {
            animation: slideOutToLeft 0.3s ease forwards;
        }

        .slide-in-from-left {
            animation: slideInFromLeft 0.4s ease forwards;
        }

        .slide-out-to-right {
            animation: slideOutToRight 0.3s ease forwards;
        }

        @keyframes slideInFromRight {
            from {
                opacity: 0;
                transform: translateX(40px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideOutToLeft {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(-40px);
            }
        }

        @keyframes slideInFromLeft {
            from {
                opacity: 0;
                transform: translateX(-40px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideOutToRight {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(40px);
            }
        }


/* SweetAlert: mobile-friendly scroll review */
.swal-wide {
  width: min(560px, 92vw) !important;
}

.swal-review {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.35;
  max-height: 55vh;
  overflow: auto;
  padding-right: 6px;
}

.swal-review .box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  margin-bottom: 10px;
}

.swal-review .grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 12px;
}

.swal-review .label {
  color: #6b7280;
  font-weight: 600;
}

.swal-review .value {
  color: #111827;
  word-break: break-word;
}

.swal-review .warning {
  border-left: 4px solid #b91c1c;
  background: #fff5f5;
  color: #7f1d1d;
  padding: 10px 12px;
  border-radius: 10px;
}

@media (max-width: 420px) {
  .swal-review .grid {
    grid-template-columns: 1fr;
  }
}


/* stars rating css */
  .rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
    user-select: none;
  }
  .rating-stars input { display: none; }
  .rating-stars label {
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #cbd5e1;
    transition: transform .08s ease, color .08s ease;
  }
  .rating-stars label:hover { transform: scale(1.08); }
  .rating-stars label:hover,
  .rating-stars label:hover ~ label { color: #f59e0b; }
  .rating-stars input:checked ~ label { color: #f59e0b; }


textarea {
  border-radius: 0 !important;
}

/* front background colors*/
/* Adopted = Blue / Neutral */
.badge-adopted {
  background: linear-gradient(180deg, #f0f9ff, #ffffff);
  border: 1px solid #bae6fd;
}

.badge-regular {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
  border: 1px solid #fed7aa;
}
    /* </style> */

.rating-stars.is-invalid {
  outline: 2px solid #dc3545;
  outline-offset: 6px;
  border-radius: 10px;
}
