:root {
  --brand-blue: #0a66c2;
  --brand-gold: #f5b342;
  --neon-cyan: #00f0ff;
  --dark-bg: #050a14;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}
body {
  background-color: var(--dark-bg);
  color: var(--text-main);
  line-height: 1.8;
}
.navbar {
  background: rgba(5, 10, 20, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
}

.nav-logo img {
width: 50px;
  height: 50px;
}

.back-btn {
  background: var(--glass-bg);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-cyan);
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}
.form-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.form-group label .required {
  color: #ef4444;
  margin-right: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: "Vazirmatn", sans-serif;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}
.form-group select option {
  background: var(--dark-bg);
  color: #fff;
}
.form-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.submit-btn {
  background: linear-gradient(135deg, var(--brand-gold), #d49a30);
  color: #000;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(245, 179, 66, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(245, 179, 66, 0.5);
}
.info-box {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}
.info-box h3 {
  color: var(--neon-cyan);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.info-box ul {
  list-style: none;
  padding-right: 1rem;
}
.info-box li {
  color: var(--text-muted);
  padding: 0.3rem 0;
  position: relative;
  padding-right: 1.5rem;
}
.info-box li::before {
  content: "✓";
  color: var(--neon-cyan);
  position: absolute;
  right: 0;
  font-weight: bold;
}
.success-message {
  display: none;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.success-message.show {
  display: block;
}
.success-message i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 1rem;
}
.success-message h3 {
  color: #22c55e;
  margin-bottom: 0.5rem;
}
.success-message p {
  color: var(--text-muted);
}
footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4rem;
}

#formMessage {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease-out;
    line-height: 1.6;
}

.alert ul {
    margin: 0;
    padding-right: 1.2rem;
    list-style-type: disc;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}