:root {
  --calypso: #00a4bd;
  --calypso-medium: #7fd1de;
  --calypso-light: #e5f5f8;
  --lorax: #ff7a59;
  --olaf: #ffffff;
  --heffalump: #425b76;
  --marigold-light: #fef8f0;
  --marigold-medium: #fae0b5;
  --obsidian: #33475b;
  --battleship: #cbd6e2;
  --koala: #eaf0f6;
  --button-tertiary-light-text: #506e9;
  --gypsum: #f5f8fa;
  --slinky: #516f90;
  --calypso-dark: #0091ae;
  --flint: #99acc2;
}

/* Import Lexend Deca font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700&display=swap');

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Lexend Deca', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--obsidian);
  background-color: var(--gypsum);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lexend Deca', Helvetica, Arial, sans-serif;
  color: var(--obsidian);
  font-weight: 600;
  margin-top: 0;
}

h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; line-height: 1.3; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; line-height: 1.4; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; line-height: 1.5; margin-bottom: 0.75rem; }
h5 { font-size: 1.125rem; line-height: 1.6; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; line-height: 1.6; margin-bottom: 0.5rem; }

p {
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--calypso-dark);
  text-decoration: none;
  transition: all 0.15s ease-out;
}

a:hover {
  color: var(--calypso);
  text-decoration: underline;
}

/* Buttons */
.btn {
  font-family: 'Lexend Deca', Helvetica, Arial, sans-serif;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease-out;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--calypso);
  color: var(--olaf);
}

.btn-primary:hover {
  background-color: var(--calypso-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 164, 189, 0.3);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--olaf);
  color: var(--calypso);
  border: 2px solid var(--calypso);
}

.btn-secondary:hover {
  background-color: var(--calypso-light);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-tertiary {
  background-color: transparent;
  color: var(--slinky);
  border: 1px solid var(--battleship);
}

.btn-tertiary:hover {
  background-color: var(--koala);
  border-color: var(--flint);
  text-decoration: none;
}

.btn-danger {
  background-color: var(--lorax);
  color: var(--olaf);
}

.btn-danger:hover {
  background-color: #e55a3c;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Cards */
.card {
  background: var(--olaf);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
  transition: box-shadow 0.15s ease-out;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.form-label {
  display: block;
  font-weight: 500;
  color: var(--heffalump);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--battleship);
  border-radius: 4px;
  font-size: 16px;
  font-family: 'Lexend Deca', Helvetica, Arial, sans-serif;
  background-color: var(--olaf);
  color: var(--obsidian);
  transition: all 0.15s ease-out;
}

.form-control:focus {
  outline: none;
  border-color: var(--calypso);
  box-shadow: 0 0 0 3px rgba(0, 164, 189, 0.1);
}

.form-control.invalid {
  border-color: var(--lorax);
}

/* Invalid state styles */
.invalid .components-input-control__label {
  color: red;
}

.invalid .components-input-control__container {
  outline: 1px solid red;
}

.invalid .components-base-control__label {
  color: red;
}

.invalid .components-text-control__input {
  outline: 1px solid red;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--olaf);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table th {
  background-color: var(--koala);
  color: var(--heffalump);
  font-weight: 600;
  padding: 16px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: 16px;
  border-bottom: 1px solid var(--koala);
  color: var(--obsidian);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background-color: var(--gypsum);
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-info {
  background-color: var(--calypso-light);
  color: var(--calypso-dark);
  border-left: 4px solid var(--calypso);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-warning {
  background-color: var(--marigold-light);
  color: #856404;
  border-left: 4px solid var(--lorax);
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid var(--lorax);
}

/* Navigation */
.navbar {
  background-color: var(--olaf);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar a {
  color: var(--slinky);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.15s ease-out;
}

.navbar a:hover {
  background-color: var(--koala);
  color: var(--calypso-dark);
  text-decoration: none;
}

.navbar a.active {
  background-color: var(--calypso-light);
  color: var(--calypso-dark);
}

/* HubSpot specific styles */
.hs-embed-edit-link.hs-embed-edit-link.hs-embed-edit-link > a {
  all: unset;
}

button.hs-embed-edit-link.hs-embed-edit-link.hs-embed-edit-link {
  background-color: white;
  border: 1px solid var(--battleship) !important;
  color: var(--slinky);
  font-weight: 300;
}

svg.hs-embed-edit-link.hs-embed-edit-link.hs-embed-edit-link {
  color: var(--slinky);
  transform: scale(1.2);
}

.hs-empty-state-create-link.hs-empty-state-create-link.hs-empty-state-create-link > a {
  all: unset;
}

button.hs-empty-state-create-link.hs-empty-state-create-link.hs-empty-state-create-link {
  background-color: white;
  font-weight: 300;
}

.hs-empty-state-create-link.hs-empty-state-create-link.hs-empty-state-create-link > a > svg {
  transform: scale(1.2);
  padding-left: 5px;
}

.hs-create-new-embed-item.hs-create-new-embed-item {
  font-family: 'Lexend Deca', Helvetica, Arial, sans-serif;
  font-weight: 600 !important;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.15s ease-out;
  color: var(--calypso-dark) !important;
}

.hs-create-new-embed-item.hs-create-new-embed-item:hover {
  cursor: pointer;
  text-decoration: underline;
}

.hs-create-new-embed-item.hs-create-new-embed-item > svg {
  color: var(--flint) !important;
  transform: scale(1.2);
  stroke-width: 3px;
  padding-left: 8px;
}

.hs-text-on-dark.hs-text-on-dark.hs-text-on-dark.hs-text-on-dark {
  color: var(--calypso) !important;
}

.hs-embed-link.hs-embed-link.hs-embed-link {
  color: var(--calypso-dark) !important;
  font-weight: 600;
  text-decoration: none;
}

.hs-embed-link.hs-embed-link.hs-embed-link:hover {
  text-decoration: underline;
  cursor: pointer;
}

.hs-embed-info.hs-embed-info.hs-embed-info {
  font-size: 12px;
  margin-top: 20px;
  color: var(--slinky) !important;
}

.hs-content-embed-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: transparent;
  box-sizing: border-box;
  border: 3px solid transparent;
  transition: background-color 0.1s ease-in-out;
}

.hs-content-embed-overlay > .hs-button-wrapper {
  opacity: 0;
  transition: opacity 0.1s;
}

.hs-content-embed-overlay:hover {
  cursor: pointer;
  border: 3px solid var(--calypso-medium);
  background-color: rgba(127, 209, 222, 0.25);
}

.hs-content-embed-overlay:hover > .hs-button-wrapper {
  opacity: 1;
}

.hs-publish-text.hs-publish-text.hs-publish-text.hs-publish-text {
  font-family: 'Lexend Deca', Helvetica, Arial, sans-serif;
  font-size: 24px;
  color: var(--obsidian) !important;
}

.hs-min-height-radio-group.hs-min-height-radio-group.hs-min-height-radio-group .components-radio-control__option {
  margin-bottom: 8px;
}

.hs-min-height-radio-group.hs-min-height-radio-group.hs-min-height-radio-group .components-radio-control__option label {
  margin-top: -1px;
  vertical-align: middle;
  font-size: 13px;
}

.hs-min-height-radio-group.hs-min-height-radio-group.hs-min-height-radio-group .components-radio-control__option input[type='radio'] {
  transform: scale(0.9);
}

.hs-embed-inline-error.hs-embed-inline-error.hs-embed-inline-error {
  font-size: 12px !important;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 40px; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col {
  flex: 1;
  padding: 0 12px;
}

.col-auto {
  flex: 0 0 auto;
  padding: 0 12px;
}

/* Shadows */
.shadow-sm { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); }

/* Loading spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 164, 189, 0.3);
  border-radius: 50%;
  border-top-color: var(--calypso);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}