/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary-color: #ff4d4d;
  --primary-dark: #cc0000;
  --secondary-color: #0b1120;
  --secondary-light: #1e293b;
  --accent-color: #64748b;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-tertiary: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #ff4d4d;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --border-radius: 0.5rem;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(
    135deg,
    var(--background-secondary) 0%,
    #e0f2fe 100%
  );
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER STYLES ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-light)
  );
  padding: 1rem 3rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo img {
  width: 140px;
  height: auto;
  transition: transform var(--transition-normal);
}

.logo img:hover {
  transform: scale(1.05);
}
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-light)
  );
  padding: 0.7vh 2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo img {
  width: 140px;
  height: auto;
  transition: transform var(--transition-normal);
}

.logo img:hover {
  transform: scale(1.05);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav ul li a {
  position: relative;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
}

.nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--primary-color);
  transition: all var(--transition-normal);
}

.nav ul li a:hover::after,
.nav ul li a[aria-current="page"]::after {
  width: 100%;
  left: 0;
}

.nav ul li a:hover,
.nav ul li a[aria-current="page"] {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

/* ===== MAIN CONTAINER ===== */
.contact-container {
  max-width: 90px;
  margin: 3rem auto;
  padding: 0 1rem;
}

form {
  max-width: 600px;
  margin: 0 auto;
}
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FORM STYLES ===== */
form {
  background: var(--background-primary);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-dark),
    var(--primary-color)
  );
}

.form-control {
  margin-bottom: 2rem;
  position: relative;
}

.form-control label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.025em;
}

.required {
  color: var(--error-color);
  margin-left: 0.25rem;
}

/* ===== INPUT STYLES ===== */
.form-control input,
.form-control select,
.form-control textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--background-primary);
  transition: all var(--transition-normal);
  position: relative;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
  transform: translateY(-1px);
}

.form-control input::placeholder,
.form-control textarea::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.form-control textarea {
  height: 120px;
  resize: vertical;
  font-family: inherit;
}

/* ===== SELECT DROPDOWN STYLES ===== */
.form-control select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 3rem;
  appearance: none;
}

/* ===== RADIO & CHECKBOX STYLES ===== */
.form-control input[type="radio"],
.form-control input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  transform: scale(1.2);
  accent-color: var(--primary-color);
}

.form-control .radio-group,
.form-control .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-control .radio-item,
.form-control .checkbox-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast);
}

.form-control .radio-item:hover,
.form-control .checkbox-item:hover {
  background-color: var(--background-secondary);
}

/* ===== BUTTON STYLES ===== */
button {
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

button:hover {
  background: linear-gradient(135deg, var(--primary-dark), #990000);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

button:hover::before {
  left: 100%;
}

button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

/* ===== LOADING STATE ===== */
button.loading {
  background: var(--accent-color);
  cursor: not-allowed;
  transform: none;
}

button.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== SUCCESS/ERROR MESSAGES ===== */
.success-message {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: none;
  box-shadow: var(--shadow-md);
}

.error-message {
  background: linear-gradient(135deg, var(--error-color), #dc2626);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: none;
  box-shadow: var(--shadow-md);
}

.success-message.show,
.error-message.show {
  display: block;
  animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CONTACT INFO SECTION ===== */
.contact-info {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--secondary-light)
  );
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
  box-shadow: var(--shadow-lg);
}

.contact-info h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-normal);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-item-icon {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  margin-top: 0.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-item-content h4 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-item-content p {
  color: #e2e8f0;
  margin: 0;
  line-height: 1.5;
}

/* ===== FLOATING LABELS EFFECT ===== */
.form-control.floating {
  position: relative;
}

.form-control.floating input,
.form-control.floating textarea {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.form-control.floating label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  transition: all var(--transition-normal);
  pointer-events: none;
  color: var(--text-light);
  background: var(--background-primary);
  padding: 0 0.25rem;
}

.form-control.floating input:focus + label,
.form-control.floating input:not(:placeholder-shown) + label,
.form-control.floating textarea:focus + label,
.form-control.floating textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 1rem;
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    text-align: center;
  }

  .contact-container {
    margin: 1rem auto;
    padding: 0 1rem;
  }

  form {
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
  }

  .contact-header h1 {
    font-size: 2rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  form {
    padding: 1.5rem 1rem;
  }

  .form-control input,
  .form-control select,
  .form-control textarea {
    padding: 0.875rem 1rem;
  }

  .contact-header h1 {
    font-size: 1.75rem;
  }

  .contact-header p {
    font-size: 1rem;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-secondary: #000000;
  }
}

/* Focus indicators for keyboard navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  header {
    display: none;
  }

  form {
    box-shadow: none;
    border: 1px solid #000;
  }

  button {
    display: none;
  }

  .contact-info {
    background: none;
    color: #000;
    border: 1px solid #000;
  }
}
