/* Japanese pattern style */
.japanese-pattern {
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='12' viewBox='0 0 60 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 12c3.314 0 6-2.686 6-6S9.314 0 6 0 0 2.686 0 6s2.686 6 6 6zm12 0c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm12 0c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm12 0c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm12 0c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6z' fill='%23DDD6CC' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ============================================================================
   UNIFIED FORM STYLES - HARMONIZED CONTACT FORM INTEGRATION
   ============================================================================ */

/* Form field base styles */
.form-field {
    position: relative;
}

.form-field .error-message {
    display: none;
    color: #BC002D; /* Use existing brand error color */
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-field.has-error .error-message {
    display: block;
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: #BC002D; /* Consistent error color */
    box-shadow: 0 0 0 3px rgba(188, 0, 45, 0.1);
}

/* Unified custom radio styles */
.custom-radio {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background-color: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-radio:checked {
    border-color: #282824; /* Brand color */
    background-color: #282824;
}

.custom-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Unified custom checkbox styles */
.custom-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-checkbox:checked {
    border-color: #282824; /* Brand color */
    background-color: #282824;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    color: white;
    font-size: 0.75rem;
    transform: translate(-50%, -50%);
    line-height: 1;
}

/* Enhanced notification with slideInDown animation */
.notification {
    animation: slideInDown 0.3s ease-out;
}

.notification.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -100%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Enhanced button disabled state */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Enhanced focus states */
.custom-radio:focus,
.custom-checkbox:focus {
    outline: 2px solid #282824;
    outline-offset: 2px;
}

/* Collapsible section styles */
.collapsible-section {
  border: 1px solid #f5f3ee;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.collapsible-header {
  background-color: #e4d6cc;
  padding: 1.0rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}
.collapsible-header:hover {
  background-color: #f5f3ee;
}
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
}
.collapsible-content.expanded {
  max-height: 2000px;
}
.collapsible-content-inner {
  padding: 1.5rem;
}
.collapsible-icon {
  transition: transform 0.3s ease;
}
.collapsible-icon.rotated {
  transform: rotate(180deg);
}

/* H2 Style equivalent to: text-3xl font-medium tracking-tight text-gray-900 sm:text-4xl */
h1 {
    margin-top: 1.5rem;
    font-size: 1.75rem; /* text-3xl */
    line-height: 2.0rem;
    font-weight: 500; /* font-medium */
    letter-spacing: -0.025em; /* tracking-tight */
    color: #111827; /* text-gray-900 */
}

h2 {
    margin-top: 1.5rem;
    font-size: 1.5rem; /* text-3xl */
    line-height: 2.0rem;
    font-weight: 500; /* font-medium */
    letter-spacing: -0.025em; /* tracking-tight */
    color: #111827; /* text-gray-900 */
}

h3 {
    margin-top: 1.25rem!important;
    font-size: 1.25rem!important; /* text-3xl */
    line-height: 1.75rem!important;
    font-weight: 500; /* font-medium */
    letter-spacing: -0.025em; /* tracking-tight */
    color: #111827; /* text-gray-900 */
}

h4 {
    margin-top: 1.0rem!important;
    font-size: 1.0rem!important; /* text-3xl */
    line-height: 1.5rem!important;
    font-weight: 500; /* font-medium */
    letter-spacing: -0.025em; /* tracking-tight */
    color: #111827; /* text-gray-900 */
}

p {
    margin-top: 0.5rem!important;
}

@media (min-width: 640px) {
    h2 {
        font-size: 1.5rem!important; /* sm:text-4xl */
        line-height: 2.0rem!important;
    }
}

.hero-section {
  background-position: center;
  background-size: cover;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(238, 236, 230, 0.9) 0%,
    rgba(238, 236, 230, 0.7) 50%,
    rgba(238, 236, 230, 0.1) 100%
  );
  z-index: 1;
}

/* Alternative darker hero section gradient (used in shop) */
.hero-section.dark::before {
  background: linear-gradient(90deg, rgba(40, 40, 36, 0.8) 0%, rgba(40, 40, 36, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Seminar card styles */
.seminar-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.seminar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

/* Filter pill styles */
.filter-pill {
  transition: all 0.3s ease;
}
.filter-pill:hover, .filter-pill.active {
  background-color: #282824;
  color: white;
}

/* Availability toggle styles */
.availability-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.availability-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background-color: #282824;
}
input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Custom Brand Colors matching Tailwind Utilities */
.bg-primary {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}

.bg-secondary {
    --tw-bg-opacity: 1;
    background-color: rgb(153 27 27 / var(--tw-bg-opacity));
}

/* Supplemental utilities for complete theming as per usage */
.text-primary {
    --tw-text-opacity: 1;
    color: rgb(31 41 55 / var(--tw-text-opacity));
}

.text-secondary {
    --tw-text-opacity: 1;
    color: rgb(153 27 27 / var(--tw-text-opacity));
}

.border-primary {
    --tw-border-opacity: 1;
    border-color: rgb(31 41 55 / var(--tw-border-opacity));
}

.border-secondary {
    --tw-border-opacity: 1;
    border-color: rgb(153 27 27 / var(--tw-border-opacity));
}

/* Hover states to support Tailwind-like syntax for custom colors */
.hover\:bg-primary:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}

.hover\:bg-secondary:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(153 27 27 / var(--tw-bg-opacity));
}

.hover\:text-primary:hover {
    --tw-text-opacity: 1;
    color: rgb(31 41 55 / var(--tw-text-opacity));
}

.hover\:text-secondary:hover {
    --tw-text-opacity: 1;
    color: rgb(153 27 27 / var(--tw-text-opacity));
}

/* Tab button styles (login/register tabs) */
.tab-button {
  transition: all 0.3s ease;
}

.tab-button.active {
  background-color: #282824;
  color: white;
}

/* Password strength meter styles */
.password-strength-meter {
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.password-strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-weak {
  width: 33%;
  background-color: #ef4444;
}

.strength-medium {
  width: 66%;
  background-color: #f59e0b;
}

.strength-strong {
  width: 100%;
  background-color: #10b981;
}

/* Tooltip styles */
.tooltip {
  position: absolute;
  z-index: 1000;
  background-color: #1f2937;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  max-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
}

.tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1f2937;
}

/* Custom CSS extracted from Checkout.cshtml and OrderConfirmation.cshtml */

/* From Checkout.cshtml */
/* Smooth transitions for accordion arrows and content */
.ri-arrow-down-s-line {
    transition: transform 0.3s ease;
}

.section-content,
.payment-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.section-content:not(.active),
.payment-content:not(.active) {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.section-content.active,
.payment-content.active {
    max-height: none;
    opacity: 1;
}

.section-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.section-header:hover {
    background-color: #f9fafb;
}

/* Enhanced radio button styling */
label:has(input[type="radio"]:checked) {
    border-color: #3b82f6 !important;
    background-color: #f0f9ff;
}

/* Radio button custom styling */
.radio-circle {
    transition: border-color 0.2s ease;
}

.radio-dot {
    transition: transform 0.2s ease;
}

/* Ensure radio buttons are clickable through labels */
input[type="radio"].sr-only + div {
    cursor: pointer;
}

/* Additional visual feedback for radio button containers */
label:has(input[type="radio"]) {
    transition: all 0.2s ease;
}

label:has(input[type="radio"]):hover {
    background-color: #f8fafc;
    border-color: #6366f1;
}

/* Fallback for browsers that don't support :has() */
@supports not (selector(:has(*))) {
    label[data-checked="true"] {
        border-color: #3b82f6 !important;
        background-color: #f0f9ff;
    }
}

/* Spinner animation for loading state */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* From OrderConfirmation.cshtml */
@media print {
    header, .breadcrumb, .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
