/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Inter", sans-serif;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Animated Background Elements */
body::before,
body::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

body::before {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.2);
  top: -100px;
  left: -100px;
}

body::after {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.15);
  bottom: -80px;
  right: -80px;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(20px) translateX(20px);
  }
}

/* Container */
.container {
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: slideIn 0.6s ease-out;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 35px;
}

.logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease-out;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.header p {
  color: #666;
  font-size: 15px;
  font-weight: 400;
}

/* Form */
.form-group {
  margin-bottom: 24px;
  animation: fadeIn 0.6s ease-out backwards;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-col {
  margin-bottom: 0;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.form-group:nth-child(2) {
  animation-delay: 0.2s;
}
.form-group:nth-child(3) {
  animation-delay: 0.3s;
}
.form-group:nth-child(4) {
  animation-delay: 0.4s;
}
.form-group:nth-child(5) {
  animation-delay: 0.5s;
}
.form-group:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group label .required {
  color: #e74c3c;
  margin-left: 3px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: #aaa;
}

/* File Input Styling */
.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input-label:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.file-input-label svg {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  stroke: #667eea;
}

.file-input-label span {
  color: #666;
  font-size: 14px;
}

input[type="file"] {
  position: absolute;
  left: -9999px;
}

.file-name {
  margin-top: 8px;
  font-size: 13px;
  color: #667eea;
  font-weight: 500;
}

/* Honeypot - Hidden from humans, visible to bots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Messages */
.message {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  display: none;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.show {
  display: block;
}

.message.success {
  background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
  color: white;
  border-left: 4px solid #00b09b;
}

.message.error {
  background: linear-gradient(135deg, #e74c3c 0%, #e91e63 100%);
  color: white;
  border-left: 4px solid #c0392b;
}

.message-icon {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .card {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .logo {
    max-width: 150px;
  }

  .header h1 {
    font-size: 26px;
  }

  .header p {
    font-size: 14px;
  }

  .form-control {
    padding: 12px 14px;
    font-size: 14px;
  }

  .btn-submit {
    padding: 14px;
    font-size: 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-col {
    margin-bottom: 24px;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* Extra Mobile Optimization for Small Screens */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    max-width: 100%;
    width: 100%;
  }

  .card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .logo {
    max-width: 100px;
    margin-bottom: 16px;
  }

  .header {
    margin-bottom: 24px;
  }

  .header h1 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .header p {
    font-size: 13px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-control {
    font-size: 15px;
    padding: 12px 14px;
  }

  .file-input-label {
    padding: 20px 14px;
  }

  .file-input-label span {
    font-size: 13px;
  }

  .file-name {
    font-size: 12px;
  }

  .btn-submit {
    padding: 14px;
    font-size: 15px;
  }

  .message {
    font-size: 14px;
    padding: 14px 16px;
  }
}

