@font-face{font-family:Ember Modern;font-weight:400;src:url('../assets/EmberModernDisplayStd-Regular.woff2') format("woff2")}
@font-face{font-family:Ember Modern;font-weight:700;src:url('../assets/EmberModernDisplayStd-Bold.woff2') format("woff2")}

html, div, p {
    font-family: "Ember Modern", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

strong {
    font-family: "Ember Modern", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: bold;
    font-size:xx-large;
}

strong.link-small {
    font-size: large;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --background-color: #f8f9fa;
  --border-color: #dee2e6;
}

body { 
  /* max-width: 800px;
  margin: 40px auto;
  padding: 20px; */
  background-color: var(--background-color);
  color: var(--primary-color);
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-color);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

.optional-label {
  color: #6c757d;
  font-size: 0.9em;
  font-weight: normal;
}

.terms-container {
  margin: 20px 0;
}

.terms-toggle {
  color: var(--secondary-color);
  text-decoration: none;
  cursor: pointer;
}

.terms-toggle:hover {
  text-decoration: underline;
}

.terms-content {
  display: none;
  background: var(--background-color);
  padding: 15px;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

button[type="submit"] {
  background: var(--secondary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

button[type="submit"]:hover {
  background: #2980b9;
}

.error {
  color: #dc3545;
  font-size: 0.9em;
  margin-top: 5px;
}

.submit-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.submit-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Overlay styles */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.overlay.show {
  display: flex;
}

/* CAPTCHA container styles */
.captcha-modal {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 500px;
  max-width: 95vw;
  max-height: 95vh;
  overflow: auto;
  position: relative;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
}

.captcha-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.captcha-modal .close-modal:hover {
  color: #333;
}

.captcha-header {
  text-align: center;
  margin-bottom: 20px;
}

.captcha-header h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.5em;
}

.captcha-header p {
  margin: 0;
  color: #666;
  font-size: 0.9em;
}

#captcha-container {
  min-height: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  padding: 20px;
  margin: 20px 0;
}

.captcha-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.cancel-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.cancel-btn:hover {
  background-color: #5a6268;
}

/* Responsive modal sizing */
@media (max-width: 768px) {
  .captcha-modal {
    min-width: 95vw;
    padding: 20px;
  }
  
  .captcha-header h3 {
    font-size: 1.3em;
  }
  
  #captcha-container {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .captcha-modal {
    min-width: 98vw;
    padding: 15px;
  }
  
  #captcha-container {
    min-height: 200px;
  }
}

/* Prevent scrolling of background when modal is open */
.no-scroll {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

#cookie-notice {
  margin-top: 2em;
}

/* Cookie Banner Sliding Styles */
.cookie-banner-slide {
  position: fixed;
  bottom: -150px; /* Initially hidden below viewport */
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 0;
  z-index: 1050;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  border-top: 3px solid #007bff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.cookie-banner-slide.show {
  bottom: 0;
  transform: translateY(0);
}

.cookie-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: white;
  font-weight: 400;
}

.cookie-text strong {
  font-weight: 600;
  color: #fff;
}

.cookie-link {
  color: #b3d9ff;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.cookie-close-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cookie-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cookie-close-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cookie-close-btn i {
  margin-right: 6px;
}

/* Responsive adjustments for sliding cookie banner */
@media (max-width: 768px) {
  .cookie-banner-slide {
    bottom: -200px;
    padding: 15px 0;
  }
  
  .cookie-text {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .cookie-close-btn {
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .cookie-banner-slide {
    bottom: -220px;
  }
  
  .cookie-text {
    font-size: 13px;
    line-height: 1.4;
  }
}

/* Body padding when cookie banner is active */
body.cookie-banner-active {
  padding-bottom: 150px;
  transition: padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive padding adjustments */
@media (max-width: 768px) {
  body.cookie-banner-active {
    padding-bottom: 180px;
  }
}

@media (max-width: 480px) {
  body.cookie-banner-active {
    padding-bottom: 200px;
  }
}

/* Loading Spinner Styles */
.loading-spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
}

/* Form Loading Overlay */
.form-container {
  position: relative;
}

.form-loading-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1000;
  border-radius: 8px;
}

/* Success Message Styles */
.success-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 30px;
  max-width: 25%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
  text-align: center;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
  .success-message {
    width: 80%;
    max-width: 95%;
    left: 50%;
    padding: 10px;
    margin: 3px;
  }
}

.success-message.show {
  display: none;
}
