/* ====== Global Styles ====== */
:root {
  --primary-color: #1ABC9C;
  --secondary-color: #F39C12;
  --accent-blue: #2E8BFF;
  --accent-coral: #E74C3C;
  --bg-light: #F5F5F5;
  --bg-dark: #253443;
  --text-dark: #222222;
  --font-main: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ====== Header ====== */
.header {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo-container {
  margin-bottom: 1rem;
}

.logo {
  max-width: 100%;
  height: auto;
}

header .logo {
  height: 80px;
}

.tagline {
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.description {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}

/* ====== How It Works ====== */
.how-it-works {
  max-width: 900px;
  margin: 2rem auto;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.how-it-works ol {
  list-style: none;
}

.how-it-works li {
  margin: 0.8rem 0;
  font-size: 1.1rem;
}

/* ====== Main Content ====== */
.main-content {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.form-section {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

#sheetUrl {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btnCloud {
  padding: 0.6rem 1.2rem;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #17a589;
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background: #d78b0f;
}

.field-selector {
  margin-top: 1rem;
}

.field-selector label{
    display: inline;
    margin: 5px;
}

.cloud-section {
  flex: 2;
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cloud-container {
  width: 100%;
  height: 500px;
}

/* ====== Footer ====== */
.footer {
  text-align: center;
  padding: 1rem;
  background: var(--bg-dark);
  color: white;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.svgIcon {
  width: 20px; 
  height: 20px;
  margin-right: 5px; 
  display: none;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
  }
  .cloud-container {
    height: 400px;
  }
}

@media (max-width: 500px) {
  .tagline {
    font-size: 1.4rem;
  }
  .how-it-works li {
    font-size: 1rem;
  }
  .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
  .btnCloud{
    margin-top: 0.5rem;
  }
  .btnText {
    display: none;
  }
  .svgIcon {
    display: inline;
  }
}
