:root {
    --color-background: #ffffff;
    --color-white: #ffffff;
    --color-primary: #89c9ef;
    --color-text: #1c1c1c;
    --color-header-bg: #f7fbff;
    --color-header-border: #e0e7ef;
    --color-menu-link: #1c1c1c;
    --color-menu-link-hover: #89c9ef;
    --font-size-base: 18px;
    --font-size-label: 1.0rem;
    --input-padding: 12px 14px;
    --input-margin-bottom: 18px;
    --form-group-spacing: 12px;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('../assets/Source_Sans_3/static/SourceSans3-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Source Sans 3';
    src: url('../assets/Source_Sans_3/static/SourceSans3-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Global box-sizing and overflow fix */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

body {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--color-background);
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Helvetica Neue', 'Ubuntu', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--font-size-base);
    width: 100%;
    margin: 0;
}

footer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--color-background);
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Helvetica Neue', 'Ubuntu', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 40px 0 20px 0;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-header-border);
    padding: 20px 40px;
    margin: 0 0 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.header-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.header-menu ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 32px 24px;
    margin: 0 auto 0 auto;
    max-width: 520px;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

section.wide {
    max-width: 800px;
}

img.site-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-style: normal;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 0.7em;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: calc(var(--font-size-base) * 2.0); color: var(--color-primary); }
h2 { font-size: calc(var(--font-size-base) * 1.5); }
h3 { font-size: calc(var(--font-size-base) * 1.25); }
h4 { font-size: calc(var(--font-size-base) * 1.1); }
h5 { font-size: var(--font-size-base); font-weight: 500; opacity: 0.7; }
h6 { font-size: calc(var(--font-size-base) * 0.9); font-weight: 500; }

.form-section {
    border-bottom: 1px solid var(--color-text);
    margin-bottom: 24px;
}

p.text-muted {
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: -0.154px;
    color: var(--color-text);
    margin: 0 0 16px 0;
    padding: 0;
}

.product {
    display: flex;
    border-radius: 6px 6px 0 0;
    background: var(--color-white);
    border: 1px solid var(--color-text);
    padding: 24px;
    flex-wrap: wrap;
}

.description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--form-group-spacing);
}

.input-wrapper,
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--input-margin-bottom);
    gap: 6px;
}

input[type="text"],
input[type="email"],
input[type="file"],
select {
    font-size: var(--font-size-base);
    padding: var(--input-padding);
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 4px;
    margin-bottom: 0;
    box-sizing: border-box;
}

input[type="file"] {
    padding: 8px 0;
    font-size: var(--font-size-base);
}

label {
    font-size: var(--font-size-label);
    font-weight: 500;
    margin-bottom: 2px;
}

.btn {
    font-size: 1.1rem;
    padding: 12px 0;
    margin-top: 18px;
}

.file-upload-wrapper div {
    font-size: 0.95em;
    color: #666;
}

.input-wrapper div {
    font-size: 0.95em;
    color: #666;
}

select {
    min-width: 120px;
    max-width: 180px;
}

p {
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: -0.154px;
    color: var(--color-text);
    height: 100%;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn {
    background-color: var(--color-primary);
    border-radius: 23px;
    border: 1.5px solid var(--color-primary);
    color: var(--color-white);
    font-size: 16px;
    padding-left: 16px;
    padding-right: 16px;
    margin-right: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--color-text);
    border-color: var(--color-text);
}

img {
    border-radius: 6px;
    margin: 10px;
    width: 100px;
    height: 100px;
}

img.wide-photo {
    height: 150px;
    width: auto;
    margin: 10px 10px 10px 0;
}


button {
    height: 56px;
    background: var(--color-primary);
    color: var(--color-white);
    width: 100%;
    border: 0;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.6px;
    border-radius: 0 0 6px 6px;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
    font-size: calc(var(--font-size-base) * 1.25); /* H3 Size */
    padding: 12px 0;
}

button:hover {
    background: var(--color-text);
}

.product .description select {
    margin-top: 4px;
    margin-bottom: 18px;
    width: 120px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 4px;
    font-size: var(--font-size-base);
    box-sizing: border-box;
}

.product .description select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(85, 108, 214, 0.5);
}

/* Minimal mobile styles */
@media (max-width: 600px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }

    body {
        padding-left: 10px;
        padding-right: 10px;
    }

  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    margin: 0 0 24px 0;
    width: 100%;
    box-sizing: border-box;
  }
  .header-logo img, img.site-logo {
    height: auto;
    width: 40%;
    margin: 0 auto 46px;
    border-radius: 0;
  }
  .header-menu ul {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 0;
  }
  section {
    max-width: 100%;
    width: 100%;
    padding: 16px 4%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    align-items: stretch;
    box-sizing: border-box;
  }
  .description, .input-wrapper, .file-upload-wrapper {
    width: 100%;
    gap: 8px;
  }
  input[type="text"],
  input[type="email"],
  input[type="file"],
  select {
    width: 100%;
    min-width: 0;
    font-size: 1em;
  }
  button, .btn {
      min-width: 0;
      font-size: 14px;
      white-space: normal;
      padding: 14px 14px;
      margin-top: 16px;
  }
  button {
      margin-top: 0;
  }

  .product {
    flex-direction: column;
  }

  body, html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .site-header, section, .product {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }
  .product {
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-menu ul, .description, .input-wrapper, .file-upload-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  img, .header-logo img, img.site-logo {
    max-width: 100%;
    height: auto;
    display: block;
  }
  button, .btn {
    max-width: 100%;
    box-sizing: border-box;
  }
}
