/* ===== German Course Registration Popup ===== */
:root {
  --gc-red:    #DE0000;
  --gc-dark:   #0D0D0D;
  --gc-gold:   #F5C300;
  --gc-text:   #1A1A2E;
  --gc-muted:  #6B7280;
  --gc-bg:     #F4F5F7;
  --gc-border: #E2E8F0;
  --gc-radius: 18px;
  --gc-shadow: 0 30px 70px rgba(0,0,0,.40), 0 0 0 1px rgba(255,255,255,.05);
}

/* ---- Overlay ---- */
.gc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  direction: rtl;
}
.gc-overlay.gc-open {
  opacity: 1;
  visibility: visible;
}

/* ---- Modal card ---- */
.gc-modal {
  background: #fff;
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow);
  width: 100%;
  max-width: 510px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: translateY(32px) scale(.97);
  transition: transform .42s cubic-bezier(.175,.885,.32,1.275);
  direction: rtl;
}
.gc-overlay.gc-open .gc-modal {
  transform: translateY(0) scale(1);
}
.gc-modal::-webkit-scrollbar { width: 3px; }
.gc-modal::-webkit-scrollbar-thumb { background: var(--gc-border); border-radius: 3px; }

/* ---- Flag stripe ---- */
.gc-stripe {
  display: flex;
  height: 7px;
  border-radius: var(--gc-radius) var(--gc-radius) 0 0;
  overflow: hidden;
}
.gc-stripe span:nth-child(1) { flex:1; background: #1a1a1a; }
.gc-stripe span:nth-child(2) { flex:1; background: var(--gc-red); }
.gc-stripe span:nth-child(3) { flex:1; background: var(--gc-gold); }

/* ---- Close ---- */
.gc-close {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.07);
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .2s;
  z-index: 10;
}
.gc-close:hover {
  background: var(--gc-red);
  color: #fff;
  transform: scale(1.1);
}

/* ---- Body ---- */
.gc-body {
  padding: 28px 36px 36px;
}

/* ---- Header ---- */
.gc-head {
  text-align: center;
  margin-bottom: 26px;
}
.gc-flag-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
  animation: gc-wave .6s ease .8s both;
}
@keyframes gc-wave {
  0%,100% { transform: rotate(0); }
  25%      { transform: rotate(-8deg); }
  75%      { transform: rotate(8deg); }
}
.gc-head h2 {
  font-family: 'Cairo', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--gc-text);
  margin: 0 0 7px;
  line-height: 1.35;
}
.gc-head p {
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px;
  color: var(--gc-muted);
  margin: 0;
  line-height: 1.65;
}

/* ---- Highlight badge ---- */
.gc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1.5px solid var(--gc-gold);
  color: #7a5c00;
  border-radius: 50px;
  padding: 5px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---- Form rows ---- */
.gc-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---- Floating-label field ---- */
.gc-field {
  position: relative;
  margin-bottom: 15px;
}
.gc-field input,
.gc-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 14px 7px;
  background: var(--gc-bg);
  border: 1.5px solid var(--gc-border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--gc-text);
  direction: rtl;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
  appearance: none;
  -webkit-appearance: none;
}
.gc-field input:focus,
.gc-field select:focus {
  border-color: var(--gc-red);
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(222,0,0,.11);
}
.gc-field label {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px;
  color: var(--gc-muted);
  pointer-events: none;
  transition: top .2s, font-size .2s, color .2s, transform .2s;
  background: transparent;
  white-space: nowrap;
}
/* Float the label when input has value or is focused */
.gc-field input:focus ~ label,
.gc-field input:not(:placeholder-shown) ~ label {
  top: 7px;
  transform: none;
  font-size: 10.5px;
  color: var(--gc-red);
  font-weight: 700;
  letter-spacing: .3px;
}
/* Select dropdown arrow */
.gc-sel-wrap::after {
  content: '▾';
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gc-muted);
  pointer-events: none;
  font-size: 13px;
  margin-top: 4px;
}
.gc-sel-wrap label {
  top: 7px;
  transform: none;
  font-size: 10.5px;
  color: var(--gc-red);
  font-weight: 700;
  letter-spacing: .3px;
}

/* ---- Error box ---- */
.gc-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
  animation: gc-shake .3s ease;
}
@keyframes gc-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

/* ---- Submit button ---- */
.gc-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #DE0000 0%, #a80000 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(222,0,0,.38);
  transition: transform .2s, box-shadow .2s, opacity .2s;
  margin-top: 4px;
}
.gc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 60%);
  pointer-events: none;
}
.gc-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(222,0,0,.48);
}
.gc-btn:active:not(:disabled) { transform: translateY(0); }
.gc-btn:disabled { opacity: .7; cursor: not-allowed; }

.gc-btn-spinner svg {
  width: 20px; height: 20px;
  animation: gc-spin .75s linear infinite;
}
@keyframes gc-spin { to { transform: rotate(360deg); } }

/* ---- Privacy note ---- */
.gc-privacy {
  text-align: center;
  font-family: 'Cairo', sans-serif;
  font-size: 11.5px;
  color: #9CA3AF;
  margin-top: 12px;
  line-height: 1.5;
}
.gc-privacy a { color: var(--gc-red); text-decoration: none; }

/* ---- Success state ---- */
.gc-success {
  text-align: center;
  padding: 10px 0 20px;
}
.gc-success-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  margin: 0 auto 20px;
  animation: gc-pop .45s cubic-bezier(.175,.885,.32,1.275);
  box-shadow: 0 8px 25px rgba(16,185,129,.35);
}
@keyframes gc-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.gc-success h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--gc-text);
  margin: 0 0 10px;
}
.gc-success p {
  font-family: 'Cairo', sans-serif;
  font-size: 14.5px;
  color: var(--gc-muted);
  margin: 0 0 6px;
  line-height: 1.65;
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
  .gc-body { padding: 22px 20px 28px; }
  .gc-row2 { grid-template-columns: 1fr; gap: 0; }
  .gc-head h2 { font-size: 18px; }
}
