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

html, body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-image: url("Sea.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

.section {
  height: 100vh;
  width: 100%;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-text {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
}

.form-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-box {
  width: 80%;
  max-width: 1100px;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 38px;
}

.form-label {
  width: 340px;
  font-size: 26px;
  font-weight: 600;
}

input,
.form-row select {
  width: 420px;
  height: 42px;
  border: none;
  padding: 0 12px;
  font-size: 16px;
  background-color: white;
  color: black;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  appearance: none;
  font-family: inherit;
}

.submit-btn {
  margin-left: 340px;
  width: 220px;
  height: 52px;
  background-color: #8e2f23;
  color: white;
  border: none;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #74261d;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #8e2f23;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1.2s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#error, .error {
  color: red;
  font-weight: bold;
  text-align: center;
}

#result-container {
  margin-top: 40px;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  border-radius: 15px;
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  max-width: 90%;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

#result-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}