/* ============================================
   Workshop Registration Page - Final Version
   Clean, Professional, Consistent Design
   ============================================ */

/* ===== Font Import (Hero Only) ===== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap");

/* ===== CSS Variables ===== */
:root {
  --primary: #6bb8be;
  --primary-dark: #5aa8ae;
  --primary-darker: #4a9da3;
  --primary-light: rgba(107, 184, 190, 0.1);
  --primary-glow: rgba(107, 184, 190, 0.3);
  --text-dark: #2c3e50;
  --text-medium: #475569;
  --text-light: #666;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --bg-light: #f8f9fa;
  --bg-hover: #f1f5f9;
}

/* ===== Hide Contact Elements ===== */
.contactus,
#go_up,
.icon-chevron-up {
  display: none !important;
}

/* ============================================
   HERO SECTION - With Background Image
   ============================================ */
.ws-hero {
  background-image: linear-gradient(
      100deg,
      rgba(30, 41, 59, 0.88) 0%,
      rgba(45, 55, 72, 0.75) 35%,
      rgba(55, 65, 81, 0.45) 60%,
      rgba(100, 116, 139, 0.2) 100%
    ),
    url("/e15/images/business-apps/ws-reg-hero.jpg");
  background-size: cover;
  background-position: center right;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

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

.ws-hero h1 {
  font-family: "Montserrat", sans-serif;
  color: white;
  font-weight: 800;
  font-size: 2.8rem;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ws-hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  max-width: 720px;
  margin: 0;
  font-size: 2rem;
}

.ws-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.ws-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ws-hero-btn-primary {
  background: white;
  color: #5aa8ae;
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.ws-hero-btn-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.ws-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.ws-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.ws-main {
  padding: 0;
  background: white;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.ws-content-section {
  padding: 45px 0;
}

.ws-content-section.ws-bg-light {
  background: var(--bg-light);
}

/* ============================================
   SECTION HEADERS - With Icon Box
   ============================================ */
.ws-section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.ws-section-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border-radius: 12px;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
}

.ws-section-header h2 {
  margin: 0;
  font-weight: 700;
  color: var(--text-dark);
}

/* ============================================
   LOCATION TABS - Clean Neutral Design
   ============================================ */
.ws-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  background: var(--bg-light);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.ws-tab {
  flex: 1;
  min-width: 150px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ws-tab:hover {
  background: white;
  color: var(--text-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ws-tab.active {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.ws-tab.active .ws-tab-flag {
  transform: scale(1.15);
}

.ws-tab-flag {
  font-size: 1.2em;
  transition: transform 0.2s ease;
}

.ws-tab-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--primary);
  color: white;
  border-radius: 11px;
  font-size: 0.8em;
  font-weight: 700;
  margin-left: 4px;
}

.ws-tab.active .ws-tab-count {
  background: white;
  color: var(--primary-dark);
}

/* ============================================
   TAB CONTENT
   ============================================ */
.ws-tab-content {
  display: none;
}

.ws-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   WORKSHOP CARDS
   ============================================ */
.ws-workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.ws-workshop-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ws-workshop-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.ws-workshop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.ws-workshop-card-title {
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.35;
}

.ws-workshop-card-price {
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(107, 184, 190, 0.2);
}

.ws-workshop-card-dates {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-date-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  color: var(--text-dark);
}

.ws-date-option:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.ws-date-option:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
}

.ws-date-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.ws-date-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-date-text i {
  color: var(--primary);
}

.ws-days {
  margin-left: auto;
  color: var(--text-light);
  background: white;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.ws-on-request {
  padding: 12px 14px;
  background: var(--bg-light);
  border-radius: 8px;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  border: 1px dashed var(--border);
}

/* ============================================
   CERTIFICATION SECTION
   ============================================ */
.ws-certification {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-top: 35px;
}

.ws-certification-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.ws-certification-info {
  flex: 1;
}

.ws-certification-info h3 {
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.ws-certification-info p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

.ws-cert-note {
  color: #e67e22 !important;
  font-weight: 600;
  margin-top: 8px !important;
}

.ws-cert-price {
  font-weight: 700;
  color: var(--primary-dark);
  padding: 8px 16px;
  background: var(--primary-light);
  border-radius: 20px;
  white-space: nowrap;
}

.ws-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ws-cert-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

.ws-cert-column h4 {
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.ws-cert-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-cert-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  color: var(--text-dark);
}

.ws-cert-option:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.ws-cert-option:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
}

.ws-cert-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.ws-cert-option.disabled:hover {
  background: var(--bg-light);
  border-color: transparent;
}

.ws-cert-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ============================================
   ON-DEMAND SECTION
   ============================================ */
.ws-ondemand {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-top: 25px;
}

.ws-ondemand-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

.ws-ondemand-info h3 {
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.ws-ondemand-info p {
  color: var(--text-light);
  margin: 0;
}

.ws-ondemand-group {
  margin-bottom: 20px;
}

.ws-ondemand-group:last-child {
  margin-bottom: 0;
}

.ws-ondemand-group-header {
  margin-bottom: 12px;
}

.ws-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ws-level-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.ws-level-fundamentals {
  background: rgba(157, 195, 231, 0.2);
  color: #4a7cb5;
}

.ws-level-advanced {
  background: rgba(107, 184, 190, 0.2);
  color: #4a9da3;
}

.ws-level-expert {
  background: rgba(255, 192, 0, 0.2);
  color: #b8860b;
}

.ws-ondemand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.ws-ondemand-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  color: var(--text-dark);
}

.ws-ondemand-option:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.ws-ondemand-option:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
}

.ws-ondemand-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ============================================
   CONTINUE BUTTON
   ============================================ */
.ws-continue-section {
  text-align: center;
  padding: 35px 0 0;
  margin-top: 35px;
  border-top: 1px solid var(--border);
}

.ws-continue-section p {
  color: var(--text-light);
  margin: 0 0 18px;
}

.ws-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.ws-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.ws-continue-btn:active {
  transform: translateY(0);
}

/* ============================================
   REGISTRATION FORM
   ============================================ */
.ws-form-section {
  display: none;
  padding: 45px 0;
  background: var(--bg-light);
  animation: fadeIn 0.4s ease;
}

.ws-form-section.active {
  display: block;
}

.ws-form-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  border: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ws-form-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.ws-form-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border-radius: 12px;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
}

.ws-form-card-header h3 {
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.ws-form-desc {
  color: var(--text-light);
  margin-bottom: 16px;
}

.ws-form-note {
  color: var(--text-light);
  margin-top: 12px;
}

.ws-form-policy {
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.ws-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.ws-form-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ws-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ws-form-group label {
  font-weight: 600;
  color: var(--text-medium);
}

.ws-form-group .required {
  color: #c0392b;
}

.ws-form-group input,
.ws-form-group select,
.ws-form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  background: white;
}

.ws-form-group input:focus,
.ws-form-group select:focus,
.ws-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.ws-form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* ============================================
   AWS OPTIONS
   ============================================ */
.ws-aws-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ws-aws-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  color: var(--text-dark);
  flex: 1;
  min-width: 160px;
}

.ws-aws-option:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.ws-aws-option:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
}

.ws-aws-option input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* ============================================
   CONFIRM SECTION
   ============================================ */
.ws-confirm-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.ws-confirm-label {
  color: var(--text-medium);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.ws-confirm-options {
  display: flex;
  gap: 20px;
}

.ws-confirm-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-medium);
  padding: 8px 16px;
  background: var(--bg-light);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ws-confirm-option:hover {
  background: var(--bg-hover);
}

.ws-confirm-option:has(input:checked) {
  background: var(--primary-light);
}

.ws-confirm-option input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* ============================================
   SUBMIT SECTION
   ============================================ */
.ws-submit-section {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ws-submit-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws-captcha-label {
  color: var(--text-medium);
  font-weight: 600;
}

.ws-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.ws-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.ws-privacy-note {
  flex: 1;
  color: var(--text-light);
  line-height: 1.6;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.ws-privacy-note a {
  color: var(--primary-dark);
  font-weight: 600;
}

/* ============================================
   QUFORM OVERRIDES - FIXED
   ============================================ */
.quform-loading-wrap {
  display: none !important;
}

form.quform-submit-loading .quform-loading-wrap,
.quform-loading-wrap.quform-loading-visible {
  display: inline-block !important;
  margin-left: 16px;
  vertical-align: middle;
}

.quform-loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.quform-hidden {
  position: absolute;
  left: -9999px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .ws-hero h1 {
    font-size: 2.4rem;
  }

  .ws-cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ws-form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ws-hero {
    padding: 35px 0;
  }

  .ws-hero h1 {
    font-size: 1.85rem;
  }

  .ws-hero-actions {
    flex-direction: column;
  }

  .ws-hero-btn {
    width: 100%;
    justify-content: center;
  }

  .ws-content-section {
    padding: 30px 0;
  }

  .ws-workshops-grid {
    grid-template-columns: 1fr;
  }

  .ws-tabs {
    flex-direction: column;
  }

  .ws-tab {
    min-width: auto;
  }

  .ws-certification,
  .ws-ondemand,
  .ws-form-card {
    padding: 20px;
  }

  .ws-certification-header {
    flex-direction: column;
    gap: 12px;
  }

  .ws-cert-grid,
  .ws-cert-grid-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ws-ondemand-header {
    flex-direction: column;
    gap: 12px;
  }

  .ws-form-row,
  .ws-form-row-2 {
    grid-template-columns: 1fr;
  }

  .ws-confirm-section {
    grid-template-columns: 1fr;
  }

  .ws-submit-section {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .ws-hero h1 {
    font-size: 1.6rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.ws-tab:focus,
.ws-date-option:focus,
.ws-cert-option:focus,
.ws-ondemand-option:focus,
.ws-continue-btn:focus,
.ws-submit-btn:focus,
.ws-hero-btn:focus,
.ws-aws-option:focus,
.ws-confirm-option:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   UTILITIES
   ============================================ */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}

html {
  scroll-behavior: smooth;
}
