@font-face {
  font-family: "ColfaxAI";
  src: url(https://cdn.openai.com/API/fonts/ColfaxAIRegular.woff2)
      format("woff2"),
    url(https://cdn.openai.com/API/fonts/ColfaxAIRegular.woff) format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "ColfaxAI";
  src: url(https://cdn.openai.com/API/fonts/ColfaxAIBold.woff2) format("woff2"),
    url(https://cdn.openai.com/API/fonts/ColfaxAIBold.woff) format("woff");
  font-weight: bold;
  font-style: normal;
}
body,
input {
  font-size: 16px;
  line-height: 24px;
  color: #353740;
  font-family: "ColfaxAI", Helvetica, sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
}
.icon {
  width: 34px;
}
h3 {
  font-size: 32px;
  line-height: 40px;
  font-weight: bold;
  color: #202123;
  margin: 16px 0 40px;
}
form {
  display: flex;
  flex-direction: column;
  width: 620px;
}
input[type="text"] {
  padding: 12px 16px;
  border: 1px solid #10a37f;
  border-radius: 4px;
  margin-bottom: 24px;
}
::placeholder {
  color: #8e8ea0;
  opacity: 1;
}
input[type="submit"] {
  padding: 12px 0;
  color: #fff;
  background-color: #10a37f;
  border: none;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}
.result {
  font-weight: bold;
  margin-top: 40px;
}

/* Campaign Page Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header img {
  max-width: 200px;
  margin-bottom: 20px;
}

header h1 {
  font-size: 36px;
  color: #202123;
  margin-bottom: 10px;
}

.hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 0;
  background-color: #f7f7f8;
  border-radius: 10px;
}

.hero h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #202123;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Setup Steps Section */
.setup-steps {
  padding: 40px 0;
  text-align: center;
}

.setup-steps h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #202123;
}

.setup-steps > p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

.step {
  background-color: #f7f7f8;
  border-radius: 10px;
  padding: 30px;
  width: 260px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  text-align: left;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: #10a37f;
  color: white;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  margin-right: 10px;
  vertical-align: middle;
}

.step h3 {
  display: inline;
  font-size: 22px;
  margin: 0;
  color: #202123;
  vertical-align: middle;
}

.step p {
  font-size: 16px;
  line-height: 1.5;
  color: #353740;
  margin-top: 15px;
}

.cta-container {
  background-color: #e6f7f4;
  border-radius: 10px;
  padding: 30px;
  margin: 20px auto;
  max-width: 700px;
}

.highlight {
  font-size: 20px;
  font-weight: bold;
  color: #10a37f;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background-color: #10a37f;
  color: white;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0c8d6e;
}

footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px 0;
  color: #8e8ea0;
  font-size: 14px;
}

/* Performance Calculator Section */
.performance-section {
  padding: 60px 0;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-top: 60px;
}

.performance-section h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #202123;
}

.performance-section > p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.calculator-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.calculator-inputs {
  text-align: left;
  padding: 20px;
}

.calculator-inputs label {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.calculator-inputs .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 15px;
  font-size: 16px;
  width: 100%;
}

.calculator-inputs .form-control:focus {
  border-color: #10a37f;
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.2);
}

#calculateBtn {
  background-color: #10a37f;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

#calculateBtn:hover {
  background-color: #0c8d6e;
}

.calculator-results {
  background-color: #f7f7f8;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  height: 100%;
}

.calculator-results h3 {
  font-size: 24px;
  color: #202123;
  margin: 0 0 20px;
  text-align: center;
}

.result-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: bold;
  color: #555;
}

.result-value {
  font-size: 18px;
  color: #10a37f;
  font-weight: bold;
}

.calculator-note {
  font-size: 14px;
  color: #777;
  font-style: italic;
  text-align: center;
}

/* Centralized Button System - All buttons should be white text on teal background */
.btn-primary,
.btn-success,
.btn-teal,
.cta-button,
button[type="submit"],
button[type="button"],
input[type="submit"],
.btn {
  background-color: #10a37f !important;
  color: white !important;
  border: none !important;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover,
.btn-success:hover,
.btn-teal:hover,
.cta-button:hover,
button[type="submit"]:hover,
button[type="button"]:hover,
input[type="submit"]:hover,
.btn:hover {
  background-color: #0c8d6e !important;
  color: white !important;
  text-decoration: none;
}

.btn-primary:focus,
.btn-success:focus,
.btn-teal:focus,
.cta-button:focus,
button[type="submit"]:focus,
button[type="button"]:focus,
input[type="submit"]:focus,
.btn:focus {
  background-color: #0c8d6e !important;
  color: white !important;
  box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.3);
  outline: none;
}

.btn-primary:active,
.btn-success:active,
.btn-teal:active,
.cta-button:active,
button[type="submit"]:active,
button[type="button"]:active,
input[type="submit"]:active,
.btn:active {
  background-color: #0a7960 !important;
  color: white !important;
}

/* Specific override for outline buttons when they need to remain outline style */
.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-primary {
  background-color: transparent !important;
  color: #333 !important;
  border: 2px solid #333 !important;
}

.btn-outline-dark:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:hover {
  background-color: #333 !important;
  color: white !important;
}

/* Large button styling */
.btn-lg,
.cta-button {
  padding: 14px 28px;
  font-size: 16px;
}

/* Small button styling */
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* Calculate button specific styling (maintain existing behavior) */
#calculateBtn {
  background-color: #10a37f;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

#calculateBtn:hover {
  background-color: #0c8d6e;
}

/* Blog Chatbot Styles */
.blog-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-toggle {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.chatbot-window {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    height: calc(100vh - 120px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1001;
}

.chatbot-header {
    background: #007bff;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 16px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.chatbot-messages {
    height: calc(100% - 120px);
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message.user {
    background: #007bff;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.chat-message.bot {
    background: #f8f9fa;
    color: #333;
    align-self: flex-start;
    border: 1px solid #e9ecef;
}

.chatbot-input-container {
    padding: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chatbot-input:focus {
    border-color: #007bff;
}

.chatbot-send {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chatbot-send:hover {
    background: #0056b3;
}

.chatbot-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.typing-indicator {
    display: none;
    align-self: flex-start;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
        max-width: 400px;
    }

    header h1 {
        font-size: 28px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .calculator-results {
        margin-top: 30px;
    }

    .chatbot-window {
        width: 300px;
        height: calc(100vh - 100px);
        right: 10px;
        top: 10px;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        right: 15px;
        bottom: 15px;
    }

    .chatbot-messages {
        height: calc(100% - 120px);
    }
}

/* Additional mobile adjustments for very small screens like iPhone SE */
@media (max-width: 480px) and (max-height: 680px) {
    .chatbot-window {
        width: 280px;
        height: calc(100vh - 80px);
        right: 10px;
        top: 10px;
    }

    .chatbot-messages {
        height: calc(100% - 120px);
    }

    .chatbot-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
        right: 15px;
        bottom: 20px;
    }
}
