/* Free Demo Page Specific Styles */

/* Hero Section */
.demo-hero {
  background: linear-gradient(135deg, #2B8DB3 0%, #4BA3C7 100%);
  padding: 5rem 0;
  position: relative;
  overflow: visible;
}

.demo-hero .hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #2B8DB3 0%, #4BA3C7 100%);
  z-index: 10;
}

/* Diagonal slant effect */
.demo-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #f8fafc;
  transform: skewY(-10deg);
  transform-origin: left;
  z-index: 15;
  box-shadow: 0 -8px 15px rgba(0, 0, 0, 0.1);
}

.demo-hero .hero-sub {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 20;
}

.demo-hero h1 {
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 20;
}

/* Two-Column Layout */
.demo-benefits-form-section {
  background: #fff;
  padding: 3.5rem 0;
  position: relative;
  color: #333;
  display: flex;
  height: 100%;
  align-items: stretch;
}

.demo-benefits-form-section p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
}

.demo-benefits-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .demo-benefits-form-wrapper {
    flex-direction: row;
  }

  .benefits-column {
    width: 40%;
  }

  .form-column {
    width: 60%;
  }
}

/* Benefits Section */
.benefits-column h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brand-blue);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.benefits-list {
  margin-top: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #41B7D6;
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(65, 183, 214, 0.2);
}

.benefit-content {
  flex: 1;
}

.benefit-title {
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: #333;
  font-size: 0.95rem;
}

.benefit-content p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #475569;
}

.pricing-callout {
  margin-top: 2rem;
  background-color: rgba(65, 183, 214, 0.1);
  border: 1px solid rgba(65, 183, 214, 0.3);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(65, 183, 214, 0.15);
}

.price {
  font-size: 2.25rem;
  font-weight: 800;
  color: #41B7D6;
}

.price-details {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #475569;
}

.price-highlight {
  color: #14688D;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Form Card */
.form-column {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-card {
  background-color: white;
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  border: 1px solid rgba(65, 183, 214, 0.2);
  position: relative;
  z-index: 10;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.form-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-align: center;
}

.form-card form {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex: 1;
  margin-top: 1.5rem;
}

.required-fields-note {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.form-group {
  position: relative;
  width: 100%;
  margin: 0.5rem 0;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0;
  color: #1B7A9E;
  font-size: 14px;
  display: block;
  position: absolute;
  top: 0;
  left: 10px;
  transform: translateY(-50%);
  background: white;
  padding: 0 5px;
  z-index: 1;
}

/* Style for required field labels */
label[for="name"]::after,
label[for="company"]::after,
label[for="email"]::after,
label[for="industry"]::after {
  content: " *";
  color: #e53e3e;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0 14px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(27, 122, 158, 0.5);
  background: white;
  color: #333;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: white;
  border-color: #1B7A9E;
  box-shadow: 0 0 0 3px rgba(27, 122, 158, 0.2);
  outline: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231B7A9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Style for datetime-local input */
input[type="datetime-local"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231B7A9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Style for placeholder text */
::placeholder {
  color: #9CA3AF;
  opacity: 1;
}
::-webkit-input-placeholder {
  color: #9CA3AF;
  opacity: 1;
}
::-moz-placeholder {
  color: #9CA3AF;
  opacity: 1;
}
:-ms-input-placeholder {
  color: #9CA3AF;
  opacity: 1;
}
:-moz-placeholder {
  color: #9CA3AF;
  opacity: 1;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  padding: 14px;
  height: auto;
  padding-top: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
  margin-bottom: 1.25rem;
}

/* Mobile responsive styles */
@media (max-width: 767px) {
  .form-card {
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    width: 100% !important;
    margin-bottom: 0;
  }

  .form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    margin: 1.25rem 0;
    width: 100% !important;
    float: none !important;
    flex: none !important;
  }

  .form-input,
  .form-select,
  .form-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    height: 54px;
    padding: 0 16px;
    font-size: 16px;
  }

  .form-label {
    position: relative;
    left: 0;
    transform: none;
    margin-bottom: 10px;
    align-self: flex-start;
    margin-left: 0;
    padding-left: 5px;
    font-size: 16px;
    display: block;
    width: 100%;
    background: transparent;
  }

  .submit-btn {
    width: 100%;
    margin: 2rem auto 0;
    height: 56px;
    font-size: 1.1rem;
    border-radius: 8px;
  }

  /* Ensure the benefits column is properly sized on mobile */
  .benefits-column {
    width: 100%;
    margin-bottom: 2.5rem;
  }

  /* Override any flex properties that might cause side-by-side display */
  .form-row .form-group {
    flex: none !important;
    width: 100% !important;
    display: block !important;
    max-width: 100% !important;
  }

  /* Custom classes for mobile stacking */
  .mobile-stack {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px;
  }

  .mobile-full {
    display: block !important;
    width: 100% !important;
    float: none !important;
    flex: none !important;
    margin-bottom: 0 !important;
  }

  /* Improve form spacing and layout on mobile */
  .form-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Ensure proper touch targets */
  .form-select {
    background-position: right 16px center;
    padding-right: 45px;
  }

  /* Add more space between form sections */
  .full-width {
    margin-bottom: 10px;
  }
}

.form-col {
  flex: 1;
  position: relative;
}

.form-row .form-group {
  flex: 1;
}

.full-width {
  width: 100%;
}

.submit-btn {
  background: #41B7D6;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  height: 48px;
  width: 70%;
  margin-top: 1.5rem;
  margin-left: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(65, 183, 214, 0.3);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background: #14688D;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(20, 104, 141, 0.4);
}

/* Dotted Pattern Decoration */
.dotted-pattern {
  position: absolute;
  width: 250px;
  height: 250px;
  background-image: radial-gradient(#e2e8f0 1.5px, transparent 2px);
  background-size: 18px 18px;
  z-index: 1;
  opacity: 0.3;
  pointer-events: none;
}

.dotted-pattern-1 {
  top: -20px;
  right: -20px;
  transform: rotate(10deg);
}

.dotted-pattern-2 {
  bottom: -20px;
  left: -20px;
  transform: rotate(-5deg);
}

/* Form Success/Error Messages */
.hidden {
  display: none;
}

#form-success-message {
  color: #41B7D6;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(65, 183, 214, 0.1);
}

#form-error-message {
  color: #e53e3e;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(229, 62, 62, 0.1);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
  vertical-align: middle;
}

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

/* Guarantee Section */
.guarantee-section {
  position: relative;
  z-index: 10;
  padding: 0;
  background: none;
}

.guarantee-diagonal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  transform: skewY(-8deg);
  z-index: 1;
}

.guarantee-card {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(27,122,158,0.08), 0 1.5px 6px rgba(66,200,193,0.07);
  border: 1.5px solid #b6e0ea;
  padding: 3.5rem 3rem 2rem 3rem;
  margin-top: 2.5rem;
  margin-bottom: 0;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cetec-logo-pill-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
}

.cetec-logo-pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid #b6e0ea;
  background: #fff;
  z-index: 20;
}

.cetec-logo-img {
  height: 2.5rem;
  width: auto;
}

.guarantee-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.guarantee-text {
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

