/* ==========================================================================
   SKILL DEVELOPMENT 2026 - 2027 TESTIMONIAL SYSTEM
   Theme: Elegant Warm Cream & Pure White with Vector SVG Icons
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Color Palette
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-main: #FBF8F3;
  --bg-subtle: #F3ECE1;
  --bg-card: #FFFFFF;
  --bg-input: #FAF7F2;
  
  --color-primary: #2D2723;       /* Deep Charcoal Brown */
  --color-primary-light: #4A433E;
  --color-accent: #C89032;        /* Warm Gold Accent */
  --color-accent-hover: #B57E24;
  --color-star-active: #F5A623;   /* Bright Star Amber */
  --color-star-empty: #E0D7C9;
  
  --color-text-main: #2C2926;
  --color-text-muted: #756F68;
  --color-text-light: #9B948B;
  
  --color-border: #E8E1D5;
  --color-border-focus: #C89032;
  --color-error: #D94A4A;
  --color-success: #3D8B5D;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(45, 39, 35, 0.03);
  --shadow-md: 0 12px 32px rgba(45, 39, 35, 0.06);
  --shadow-lg: 0 24px 48px rgba(45, 39, 35, 0.09);
  --shadow-star: 0 0 12px rgba(245, 166, 35, 0.35);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   3. Decorative Background Art
   -------------------------------------------------------------------------- */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.55;
  pointer-events: none;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #F7EAD7 0%, rgba(247, 234, 215, 0) 70%);
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #EDE2D0 0%, rgba(237, 226, 208, 0) 70%);
  bottom: -150px;
  right: -150px;
}

.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.25;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Layout Container
   -------------------------------------------------------------------------- */
.page-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   5. Header Styles
   -------------------------------------------------------------------------- */
.main-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(200, 144, 50, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 144, 50, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(200, 144, 50, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 144, 50, 0); }
}

.header-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.header-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.header-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   6. Card Wrapper & Form Card
   -------------------------------------------------------------------------- */
.card-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

@media (max-width: 600px) {
  .card-wrapper {
    padding: 28px 20px;
  }
}

.card-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-subtle);
}

.card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.card-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   7. School Selector Pills
   -------------------------------------------------------------------------- */
.school-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 520px) {
  .school-selector {
    grid-template-columns: 1fr;
  }
}

.school-pill {
  cursor: pointer;
  user-select: none;
}

.school-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  transition: var(--transition-fast);
  text-align: center;
}

.school-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.school-pill:hover .pill-btn {
  background-color: #FFFFFF;
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 144, 50, 0.08);
}

.school-pill:hover .school-icon {
  color: var(--color-accent);
  transform: scale(1.1);
}

.school-pill input[type="radio"]:checked + .pill-btn {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(45, 39, 35, 0.18);
}

.school-pill input[type="radio"]:checked + .pill-btn .school-icon {
  color: var(--color-accent);
}

.school-pill input[type="radio"]:checked + .pill-btn .school-name {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   8. Form Groups & Text Inputs
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.required {
  color: var(--color-error);
}

.optional {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  pointer-events: none;
  transition: color var(--transition-fast);
}

input[type="text"]:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--color-accent);
}

input[type="text"],
textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 46px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  transition: var(--transition-fast);
  outline: none;
}

textarea {
  padding: 14px 16px;
  resize: vertical;
  min-height: 120px;
}

input[type="text"]:focus,
textarea:focus {
  background-color: #FFFFFF;
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 4px rgba(200, 144, 50, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-light);
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.char-counter {
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   9. Star Rating System
   -------------------------------------------------------------------------- */
.star-rating-container {
  background-color: var(--bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.star-rating {
  display: flex;
  gap: 8px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-star-empty);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
  padding: 0 4px;
  line-height: 1;
  user-select: none;
}

.star-btn:hover,
.star-btn.active,
.star-btn.hover-active {
  color: var(--color-star-active);
}

.star-btn:hover {
  transform: scale(1.25);
}

.star-btn:active {
  transform: scale(1.05);
}

.rating-hint {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--bg-card);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   10. Validation Errors
   -------------------------------------------------------------------------- */
.error-msg {
  color: var(--color-error);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 6px;
  display: none;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error .star-rating-container {
  border-color: var(--color-error);
  background-color: rgba(217, 74, 74, 0.03);
}

.form-group.has-error .error-msg {
  display: block;
}

/* --------------------------------------------------------------------------
   11. Submit Button
   -------------------------------------------------------------------------- */
.submit-btn {
  width: 100%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #1A1715;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(45, 39, 35, 0.15);
}

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

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(5px);
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   12. Success Confirmation Card
   -------------------------------------------------------------------------- */
.success-card {
  text-align: center;
  padding: 30px 10px 10px;
  animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon-wrapper {
  margin: 0 auto 24px;
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-circle {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #EBF5EF, #D6ECDE);
  color: var(--color-success);
  border: 2px solid #B8E0C4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(61, 139, 93, 0.15);
}

.success-circle svg {
  stroke: var(--color-success);
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.success-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.submission-summary {
  background-color: var(--bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 28px;
}

.summary-item {
  display: flex;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.summary-item:last-child {
  margin-bottom: 0;
}

.summary-label {
  font-weight: 600;
  color: var(--color-text-muted);
  width: 110px;
  flex-shrink: 0;
}

.summary-value {
  color: var(--color-text-main);
  word-break: break-word;
}

.privacy-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.inline-svg {
  stroke: var(--color-text-light);
  vertical-align: middle;
}

.reset-btn {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.reset-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--color-primary-light);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.main-footer {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}
