/* TIEcon Matchmaking Platform */
/* css/style.css — Common styles for all pages */
:root {
  --primary: #0a2540;
  --accent: #e63946;
  --accent-dark: #c62838;
  --gold: #f4a11d;
  --tint-a: #fff6f4;
  --tint-b: #fffaf0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at 15% 0%, rgba(244,161,29,0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 15%, rgba(230,57,70,0.06) 0%, transparent 45%),
              #f7f5f0;
  color: #333;
  min-height: 100vh;
}
/* Header */
.header {
  background: #ffffff;
  color: var(--primary);
  padding: 10px 24px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  overflow: visible;
  min-height: unset;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(10,37,64,0.08);
  position: relative;
  z-index: 10;
}
.header img {
  height: auto;
  width: 220px;
  border-radius: 0;
  flex-shrink: 0;
  display: block;
}
.header .logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}
.header .tagline {
  font-size: 13px;
  color: #555;
}
/* Page-switcher tabs */
.page-tabs {
  display: flex;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 0 20px;
  gap: 10px;
}
.page-tab {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1.5px solid #ddd;
  background: white;
  color: #444;
  transition: all 0.2s;
}
.page-tab.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border-color: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(230,57,70,0.3);
  cursor: default;
}
.page-tab:not(.active):hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
/* Page container */
.container {
  max-width: 720px;
  margin: 32px auto 40px;
  padding: 0 20px;
}
/* Card */
.card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 36px 32px 32px;
  box-shadow: 0 10px 36px rgba(10,37,64,0.10);
  margin-bottom: 24px;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
}
.card h2 {
  font-size: 23px;
  color: var(--primary);
  margin-bottom: 8px;
}
.card .subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
}
/* Form elements */
.form-group {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: transparent;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-group:nth-of-type(even) {
  background: var(--tint-a);
}
.form-group:focus-within {
  border-color: rgba(230,57,70,0.35);
  background: white;
  box-shadow: 0 4px 16px rgba(10,37,64,0.08);
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #fafafa;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
/* Tags / checkboxes */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.tag-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #f4f4f4;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.tag-item:hover {
  border-color: rgba(230,57,70,0.4);
  transform: translateY(-1px);
}
.tag-item input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}
.tag-item:has(input:checked) {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: var(--accent-dark);
  color: white;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(230,57,70,0.3);
}
/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  width: 100%;
  text-align: center;
  box-shadow: 0 6px 18px rgba(230,57,70,0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230,57,70,0.4);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: var(--primary);
  color: white;
}
/* Registration receipt / printable record */
.receipt-box {
  display: none;
  margin-top: 20px;
  padding: 24px;
  border-radius: 12px;
  border: 1.5px solid #eee;
  background: #fffdfb;
}
.receipt-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}
.receipt-header img {
  height: 46px;
  border-radius: 4px;
}
.receipt-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}
.receipt-sub {
  font-size: 12px;
  color: #888;
}
.receipt-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.receipt-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
  gap: 12px;
}
.receipt-row .rlabel {
  flex: 0 0 190px;
  font-weight: 600;
  color: #444;
}
.receipt-row .rvalue {
  flex: 1;
  color: #222;
  word-break: break-word;
}
.receipt-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.receipt-actions .btn {
  width: auto;
  flex: 1;
}
@media print {
  body * { visibility: hidden; }
  .receipt-box, .receipt-box * { visibility: visible; }
  .receipt-box { display: block; position: absolute; top: 0; left: 0; width: 100%; border: none; margin: 0; }
  .no-print { display: none !important; }
}
/* Status messages */
.msg {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
  display: none;
}
.msg.success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}
.msg.error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}
/* Required star */
.required {
  color: var(--accent);
}
/* Step indicator */
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: #aaa;
}
.steps .active {
  color: var(--accent);
  font-weight: 700;
}
/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: #aaa;
}
/* Mobile responsive */
@media (max-width: 600px) {
  .container {
    margin: 20px auto;
    padding: 0 12px;
  }
  .card {
    padding: 26px 20px 20px;
  }
  .form-group {
    padding: 12px 12px;
  }
  .header img {
    height: 48px;
    width: auto;
    max-width: 55%;
    object-fit: contain;
  }
}
