/* Main Styles for GABI Mobile Form */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f8f9fa;
  font-family: 'Raleway', sans-serif;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#regForm {
  background-color: #ffffff;
  margin: 10px auto;
  padding: 20px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header styles */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  text-align: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.logo-container img {
  max-width: 80px;
}

h1, h2, h3, h4 {
  color: #012F23;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

h1 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 15px;
  font-size: 14px;
}

hr {
  margin: 15px 0;
  border: 0;
  border-top: 1px solid #ddd;
}

/* Mobile-friendly step dropdown */
.step-dropdown {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border: 1px solid #04AA6D;
  border-radius: 5px;
  background-color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23012F23" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

/* Form elements */
.tab {
  display: none;
  padding: 10px 0;
}

.tab-content {
  margin-bottom: 15px;
}

.section-title {
  background-color: #f8f9fa;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-weight: bold;
  color: #012F23;
  text-align: center;
  border-left: 5px solid #04AA6D;
  font-size: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group {
  width: 100%;
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: #04AA6D;
  outline: none;
}

.form-input.invalid {
  border-color: #dc3545;
  background-color: #ffebee;
  box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

select.form-input {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23012F23" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

/* Mobile-friendly card-based data entry */
.data-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.card-icon {
  width: 40px;
  margin-right: 10px;
}

.card-title {
  font-weight: bold;
  color: #012F23;
  flex-grow: 1;
  font-size: 14px;
}

.card-info-icon {
  color: #04AA6D;
  margin-left: 5px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-label {
  font-size: 13px;
  color: #666;
}

.card-input-group {
  display: flex;
  align-items: center;
}

.card-unit {
  min-width: 70px;
  font-weight: 500;
  font-size: 13px;
}

.card-input {
  flex-grow: 1;
}

.card-result {
  background-color: #f8f9fa;
  padding: 8px;
  margin-top: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-total-card {
  background-color: #f8f9fa;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
}

.note-box {
  background-color: #e9f7ef;
  border-left: 4px solid #04AA6D;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 14px;
}

.highlight {
  color: #012F23;
  font-weight: 600;
}

/* Flight section styling */
.flight-input-group {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.flight-input-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.flight-class-label {
  font-weight: 500;
  margin-right: 10px;
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.air-travel-info {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
  font-size: 14px;
}

/* Navigation buttons */
.button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  position: sticky;
  bottom: 20px;
  background: white;
  padding: 10px 0;
  width: 100%;
  z-index: 10;
}

button {
  background-color: #04AA6D;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s;
  width: 45%;
  -webkit-tap-highlight-color: transparent;
}

button:hover {
  background-color: #038857;
}

button:active {
  background-color: #026d45;
}

#prevBtn {
  background-color: #6c757d;
}

#prevBtn:hover, #prevBtn:active {
  background-color: #5a6268;
}

#submitForm {
  font-size: 18px;
  padding: 15px;
  background-color: #04AA6D;
  margin: 20px auto;
  display: block;
  width: 100%;
}

/* Summary section styling */
.summary-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 15px;
  margin-bottom: 15px;
}

.summary-card-header {
  font-weight: bold;
  color: #012F23;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.summary-card-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-card-label {
  flex: 2;
}

.summary-card-value {
  flex: 1;
  text-align: right;
  font-weight: 500;
}

.summary-card-unit {
  flex: 0.5;
  text-align: right;
  color: #666;
}

/* View Analytics button */
.view-analytics-btn {
  background-color: #04AA6D;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s;
  margin-top: 15px;
  display: none;
  width: 100%;
}

/* Footer section with logos */
.sources-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.sources-footer img {
  height: 40px;
  object-fit: contain;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

/* Media query for larger phones in landscape mode */
@media screen and (min-width: 568px) {
  #regForm {
    max-width: 500px;
    padding: 25px;
  }
  
  .logo-container {
    flex-direction: row;
    gap: 15px;
  }
}

/* Media query for tablets */
@media screen and (min-width: 768px) {
  #regForm {
    max-width: 700px;
    padding: 30px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  h1 {
    font-size: 26px;
  }
  
  h3 {
    font-size: 20px;
  }
}

.error-message {
  color: #ff0000;
  background-color: #ffebee;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #ffcdd2;
  font-size: 14px;
  text-align: center;
}

.invalid {
  border-color: #ff0000 !important;
  background-color: #ffebee !important;
}