/* RZR Solutions Portal - Dark Theme */
:root {
  --bg-primary: #2F333E;
  --bg-secondary: #383C47;
  --bg-card: #424750;
  --text-primary: #FFFFFF;
  --text-secondary: #95A5A5;
  --accent-blue: #42C7F4;
  --accent-purple: #7A5BA6;
  --error: #E74C3C;
  --success: #2ECC71;
  --border: #4A4F5A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
}

.logo {
  display: block;
  max-width: 240px;
  margin: 0 auto 30px;
}

.card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--accent-blue);
}

p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.text-center {
  text-align: center;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Radio buttons */
.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.radio-option {
  flex: 1;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
  font-weight: 500;
}

.radio-option input[type="radio"]:checked + label {
  border-color: var(--accent-blue);
  background: rgba(66, 199, 244, 0.1);
}

.radio-option label:hover {
  border-color: var(--accent-blue);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--bg-primary);
  width: 100%;
}

.btn-primary:hover {
  background: #35b5e0;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-secondary:hover {
  background: rgba(66, 199, 244, 0.1);
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert-error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid var(--error);
  color: var(--error);
}

.alert-success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-info {
  background: rgba(66, 199, 244, 0.15);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

/* Success icon */
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(46, 204, 113, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: var(--success);
}

/* Client info display */
.client-info {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent-purple);
}

.client-info strong {
  color: var(--accent-purple);
}

/* Request number */
.request-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin: 10px 0;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 25px 0;
}

/* Conditional fields */
.conditional-field {
  display: none;
}

.conditional-field.active {
  display: block;
}

/* Loading state */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
  }

  .card {
    padding: 20px;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
}

/* Footer link */
.footer-link {
  text-align: center;
  margin-top: 20px;
}

.footer-link a {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-link a:hover {
  text-decoration: underline;
}
