/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:      #1a1a2e;
  --accent:     #e8a030;
  --danger:     #e74c3c;
  --success:    #27ae60;
  --text:       #222;
  --text-muted: #666;
  --border:     #ddd;
  --bg:         #f7f6f3;
  --white:      #fff;
  --radius:     10px;
  --shadow:     0 2px 16px rgba(0,0,0,.08);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* === HEADER === */
.site-header {
  background: var(--brand);
  padding: 0 24px;
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
}
.header-tel {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* === MAIN === */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.main-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 720px) {
  .main-content { grid-template-columns: 1fr; margin: 20px auto; }
}

/* === CARDS === */
.form-card, .info-card, .confirmare-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.form-subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 14px;
}
.info-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--brand);
}
.info-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.info-label {
  font-weight: 600;
  min-width: 70px;
  color: var(--text-muted);
}

/* === FORM ELEMENTS === */
.form-group {
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text);
}
label small {
  font-weight: 400;
  color: var(--text-muted);
}
.req { color: var(--danger); }

input[type=text],
input[type=email],
input[type=tel],
input[type=date],
input[type=time],
input[type=number],
input[type=password],
select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .2s;
  appearance: auto;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
}
textarea { resize: vertical; }
small { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }

/* Persoane selector */
.persoane-selector {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pers-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.pers-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
#nr-persoane { font-size: 22px; font-weight: 700; min-width: 28px; text-align: center; }

/* Butoane */
.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  margin-top: 8px;
}
.btn-submit:hover { background: #2a2a4e; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.btn-secondary {
  display: inline-block;
  padding: 10px 22px;
  background: #f0f0f0;
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.btn-anulare {
  display: inline-block;
  padding: 10px 22px;
  background: var(--danger);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

/* === ALERTS === */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}
.alert-error   { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c2; }
.alert-success { background: #eafaf1; color: #1e8449; border: 1px solid #a9dfbf; }

/* === CONFIRMARE === */
.confirmare-card {
  grid-column: 1 / -1;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.check-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.confirmare-card h2 { margin-bottom: 8px; font-size: 24px; }
.confirmare-sub { color: var(--text-muted); margin-bottom: 24px; }

.detalii-rezervare {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  text-align: left;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); font-weight: 600; }
.detail-val { font-weight: 600; }
.email-notice { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.confirmare-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === LOGIN === */
.login-page { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-wrapper { width: 100%; max-width: 400px; padding: 20px; }
.login-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.login-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.text-danger { color: var(--danger); }
