/* Airfreight Cargo Calculator - Industrial/Logistics Theme */
:root {
  --bg-primary: #0a0e1a;
  --bg-surface: #141b2d;
  --bg-card: #1a2332;
  --accent-primary: #ff6b35;
  --accent-secondary: #ffa559;
  --text-primary: #e8edf4;
  --text-secondary: #9ba8bc;
  --border-color: #2a3548;
  --success: #4caf50;
  --warning: #ffb74d;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 107, 53, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 107, 53, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border-bottom: 3px solid var(--accent-primary);
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Hero Section */
.hero {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, transparent 100%);
  margin-bottom: 40px;
  border-bottom: 2px solid var(--border-color);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-icon {
  color: var(--accent-primary);
  font-weight: bold;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
  border: 2px solid var(--border-color);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Main Content Grid */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  color: var(--accent-primary);
  font-size: 28px;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

/* Dimension Grid */
.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Button */
.btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
  margin-top: 10px;
}

/* Result Display */
.result-display {
  background: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.result-item {
  background: var(--bg-card);
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid var(--accent-primary);
}

.result-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.result-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.result-unit {
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: 5px;
}

/* Info Section */
.info-section {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 60px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.info-card {
  background: var(--bg-surface);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-primary);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateX(5px);
}

.info-card h4 {
  color: var(--accent-primary);
  margin-bottom: 10px;
  font-size: 18px;
}

.info-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* Footer */
footer {
  background: var(--bg-surface);
  border-top: 3px solid var(--accent-primary);
  padding: 30px 0;
  text-align: center;
  color: var(--text-secondary);
}

/* Alert Messages */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid;
  animation: slideIn 0.3s ease;
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(255, 107, 53, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.alert.hidden {
  display: none;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .main-content {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 22px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .card {
    padding: 20px;
  }

  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }
}
