:root {
  --primary: #3e6ae1;
  --background: #fff;
  --text: #171a20;
  --header-bg: #fff;
  --nav-link: #222;
  --nav-link-hover: #3e6ae1;
  --panel-bg: #f7f8fa;
  --border-radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
}

body {
  background: var(--background);
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.tesla-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw 18px 6vw;
  background: var(--header-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.tesla-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
}
.tesla-nav {
  display: flex;
  gap: 2.5em;
}
.nav-link {
  text-decoration: none;
  color: var(--nav-link);
  font-weight: 500;
  font-size: 1.08rem;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover {
  color: var(--nav-link-hover);
}

.tesla-main {
  max-width: 700px;
  margin: 48px auto 0 auto;
  padding: 0 4vw;
}
.tesla-hero {
  text-align: center;
  margin-bottom: 36px;
}
.tesla-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: -1px;
}
.tesla-subtitle {
  color: #6c757d;
  font-size: 1.18rem;
  margin: 0;
  font-weight: 400;
}

.tesla-panel {
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 36px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prompt-label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

#template-select, #prompt-input {
  width: 100%;
  font-size: 1.08rem;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid #e0e4ea;
  background: #f9fafb;
  box-sizing: border-box;
  margin-bottom: 0;
  transition: border 0.2s;
}
#template-select:focus, #prompt-input:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}

.tesla-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 1.13rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(62,106,225,0.07);
  transition: background 0.18s, box-shadow 0.18s;
  width: 100%;
  letter-spacing: 0.02em;
}
.tesla-btn.primary:hover {
  background: #294ba1;
}

.output-box {
  min-height: 80px;
  background: #fff;
  border-radius: 8px;
  border: 1.5px solid #e0e4ea;
  padding: 18px;
  font-size: 1.13rem;
  color: #222;
  margin-top: 0;
  white-space: pre-wrap;
  transition: border 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.tesla-hero-img {
  width: 100%;
  max-width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  display: block;
}

.location-box {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.location-input {
  width: 100%;
  font-size: 1.08rem;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid #e0e4ea;
  background: #f9fafb;
  box-sizing: border-box;
  margin-bottom: 0;
  transition: border 0.2s;
}
.location-input:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}
.map-box {
  margin: 18px 0 22px 0;
}
.map-placeholder {
  width: 100%;
  height: 260px;
  background: #e9ecf2;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1.18rem;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 0;
}
.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.18rem;
  margin: 18px 0 0 0;
  padding: 10px 0 0 0;
  border-top: 1px solid #e0e4ea;
}
.price-value {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
  margin-left: 12px;
}

@media (max-width: 700px) {
  .tesla-main {
    max-width: 100vw;
    padding: 0 2vw;
  }
  .tesla-panel {
    padding: 18px 6vw 18px 6vw;
  }
  .tesla-title {
    font-size: 1.5rem;
  }
  .output-box {
    font-size: 1rem;
    padding: 12px;
  }
  .tesla-header {
    flex-direction: column;
    gap: 10px;
    padding: 18px 2vw 10px 2vw;
  }
  .tesla-nav {
    gap: 1.2em;
  }
  .tesla-hero-img {
    height: 160px;
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .map-placeholder {
    height: 140px;
    font-size: 1rem;
  }
} 