/**
 * Custom CSS for Altrano Website
 * This file contains all custom CSS that extends the base Arsha template
 * Created: 2025
 */

/*--------------------------------------------------------------
# Global Custom Overrides
--------------------------------------------------------------*/
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/*--------------------------------------------------------------
# Custom Scrollbar Styles
--------------------------------------------------------------*/
/* Fix scrollbar white space issue */
html {
  scrollbar-gutter: stable;
}

body {
  scrollbar-width: thin;
  scrollbar-color: rgba(71, 178, 228, 0.6) transparent;
}

/* Custom scrollbar for webkit browsers */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background-color: rgba(71, 178, 228, 0.6);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: content-box;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(71, 178, 228, 0.8);
}

body::-webkit-scrollbar-corner {
  background: transparent;
}

/*--------------------------------------------------------------
# Logo Customization
--------------------------------------------------------------*/
/* Filter to make logo white */
.white-logo {
  filter: brightness(0) invert(1);
  max-height: 40px;
}

/*--------------------------------------------------------------
# Hero Section Modifications
--------------------------------------------------------------*/
/* Expanded state for hero section */
#hero.expanded {
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Response container in hero section */
#responseContainer {
  position: relative;
  width: 100%;
  max-width: 600px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  display: none;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  margin-top: 20px;
  box-sizing: border-box;
}

/* Custom scrollbar for response container */
#responseContainer::-webkit-scrollbar {
  width: 20px;
}

#responseContainer::-webkit-scrollbar-track {
  background-color: transparent;
}

#responseContainer::-webkit-scrollbar-thumb {
  background-color: #d6dee1;
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
  cursor: pointer;
}

#responseContainer::-webkit-scrollbar-thumb:hover {
  background-color: #a8bbbf;
  cursor: pointer;
}

#responseContainer.visible {
  opacity: 1;
}

/* Close button for response */
#closeResponse {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  z-index: 11;
}

@media (max-width: 991px) {
  #responseContainer {
    max-height: 300px;
    margin-top: 15px;
  }
}

/*--------------------------------------------------------------
# UI Components
--------------------------------------------------------------*/

/* Combined Input-Button Style */
.combined-input-button {
  display: inline-flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.combined-input-button .input-part {
  flex-grow: 1;
  padding: 12px 20px;
  border: none;
  outline: none;
  background: white;
  color: #444;
  font-size: 16px;
  font-family: "Jost", sans-serif;
  min-width: 200px;
}

.combined-input-button .input-part::placeholder {
  color: #777;
}

.combined-input-button .button-part {
  background: #47b2e4;
  color: white;
  border: none;
  padding: 0 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.combined-input-button .button-part:hover {
  background: #209dd8;
}

/* For dark backgrounds */
.bg-dark .combined-input-button {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Response and Error Boxes */
.response-box, .error-box {
  background-color: transparent;
  border-left: 4px solid #47b2e4;
  padding: 15px;
  border-radius: 4px;
  white-space: pre-line;
  color: #444444;
}

.error-box {
  border-left: 4px solid #dc3545;
}

/*--------------------------------------------------------------
# Spinner Animations
--------------------------------------------------------------*/
/* Main spinner container */
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.spinner {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 40px;
}

.spinner div {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 15px;
  background: #47b2e4;
  animation: spinner 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.spinner div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}

.spinner div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}

.spinner div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}

@keyframes spinner {
  0% {
    height: 15px;
  }
  50% {
    height: 30px;
  }
  100% {
    height: 15px;
  }
}

/* Button spinner */
.spinner-button {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
}

.spinner-button div {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  animation: spinner-button 1.2s linear infinite;
}

.spinner-button div:nth-child(1) {
  animation-delay: 0s;
  top: 0;
  left: 6px;
}

.spinner-button div:nth-child(2) {
  animation-delay: -0.4s;
  top: 4px;
  left: 12px;
}

.spinner-button div:nth-child(3) {
  animation-delay: -0.8s;
  top: 12px;
  left: 6px;
}

@keyframes spinner-button {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/*--------------------------------------------------------------
# Z-Index Management for Hero Section
--------------------------------------------------------------*/
#hero {
  position: relative;
}

/* Hero image z-index management */
#hero .hero-img {
  position: relative;
  z-index: 1;
}

#hero .hero-img img {
  position: relative;
  z-index: 1;
}

/* Left column with text and input has higher z-index */
#hero .col-lg-6:first-child {
  position: relative;
  z-index: 20;
}

/* Main content z-index */
#main {
  position: relative;
  z-index: 1;
}

/*--------------------------------------------------------------
# Modern Chat Interface
--------------------------------------------------------------*/
.chat-interface {
  margin-top: 30px;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 25;
}

.chat-title {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: "Jost", sans-serif;
}

.chat-input-container {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  position: relative;
  z-index: 30;
  overflow: hidden;
}

.chat-input-container.expanded {
  width: 200%;
  max-width: 1200px;
  transform-origin: top left;
}

.chat-input-wrapper {
  position: relative;
}

/* Expand/Collapse Button */
.expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 25;
}

.expand-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.expand-btn.expanded {
  background: rgba(71, 178, 228, 0.3);
  border-color: rgba(71, 178, 228, 0.5);
  color: #47b2e4;
}

.expand-btn.expanded:hover {
  background: rgba(71, 178, 228, 0.4);
  color: #fff;
}

.chat-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  padding: 16px 20px 60px 20px;
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
  color: #fff;
  background: transparent;
  border-radius: 8px;
  min-height: 100px;
  max-height: 600px; /* Increased for A4-like size */
  line-height: 1.5;
  overflow-y: auto;
  box-sizing: border-box;
  transition: height 0.2s ease;
}

/* Custom scrollbar for chat textarea */
.chat-textarea::-webkit-scrollbar {
  width: 20px;
}

.chat-textarea::-webkit-scrollbar-track {
  background-color: transparent;
}

.chat-textarea::-webkit-scrollbar-thumb {
  background-color: #d6dee1;
  border-radius: 10px;
  border: 6px solid transparent;
  background-clip: content-box;
  cursor: pointer;
}

.chat-textarea::-webkit-scrollbar-thumb:hover {
  background-color: #a8bbbf;
  cursor: pointer;
}

/* Auto-expand textarea for large content */
.chat-textarea.expanded {
  min-height: 400px;
  max-height: 600px;
  width: 200% !important;
  max-width: 1200px;
  overflow-y: auto;
  transform-origin: top left;
}

/* Expanded chat input container */
.chat-input-container.expanded {
  width: 200%;
  max-width: 1200px;
  transform-origin: top left;
  z-index: 50;
}

/* Adjust textarea padding when files are attached */
.chat-input-wrapper.has-files .chat-textarea {
  padding-bottom: 20px;
}

.chat-textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.chat-input-actions {
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 15;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 10px 8px 10px 8px;
  margin-top: -24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Adjust actions position when files are attached */
.chat-input-wrapper.has-files .chat-input-actions {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  margin-top: 12px;
  padding-top: 12px;
  /* border-top: 1px solid #e9ecef; */
}

.action-icons {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.send-btn {
  background: linear-gradient(135deg, #47b2e4, #209dd8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(71, 178, 228, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 20;
}

.send-btn:hover {
  background: linear-gradient(135deg, #209dd8, #1a8bc4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(71, 178, 228, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.suggestion-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Open Sans", sans-serif;
  backdrop-filter: blur(10px);
}

.suggestion-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.suggestion-chip i {
  font-size: 12px;
}

/* Responsive design for chat interface */
@media (max-width: 768px) {
  .chat-interface {
    max-width: 100%;
    margin-bottom: 60px;
  }
  
  .chat-title {
    font-size: 20px;
  }
  
  .chat-textarea {
    padding: 14px 16px 45px 16px;
    font-size: 15px;
    min-height: 70px;
  }
  
  .chat-input-actions {
    bottom: 10px;
    left: 16px;
    right: 16px;
  }
  
  /* Mobile adjustments for attached files */
  .chat-input-wrapper.has-files .chat-input-actions {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
  }
  
  .action-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  .send-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .suggestion-chips {
    gap: 6px;
  }
  
  .suggestion-chip {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  #hero {
    padding-bottom: 100px;
  }
}

@media (max-width: 480px) {
  .action-icons {
    gap: 4px;
  }
  
  .action-btn {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  
  .send-btn {
    width: 28px;
    height: 28px;
  }
  
  .suggestion-chip {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .chat-interface {
    margin-bottom: 80px;
  }
  
  #hero {
    padding-bottom: 120px;
  }
}

/*--------------------------------------------------------------
# File Attachment Styles
--------------------------------------------------------------*/
.attached-files-container {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.attached-files-header {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-family: "Open Sans", sans-serif;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none !important;
}

.file-item * {
  text-decoration: none !important;
}

.file-item:hover {
  border-color: rgba(71, 178, 228, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(71, 178, 228, 0.3);
  transform: translateY(-1px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-decoration: none !important;
}

.file-info * {
  text-decoration: none !important;
}

.file-info i {
  color: #47b2e4;
  font-size: 16px;
  flex-shrink: 0;
  text-decoration: none !important;
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Open Sans", sans-serif;
  text-decoration: none !important;
}

.file-size {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 4px;
  flex-shrink: 0;
  text-decoration: none !important;
}

.remove-file-btn {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: rgba(220, 53, 69, 0.9);
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-decoration: none !important;
}

.remove-file-btn:hover {
  background: rgba(220, 53, 69, 0.4);
  color: #fff !important;
  border-color: rgba(220, 53, 69, 0.6);
  transform: scale(1.1);
  text-decoration: none !important;
}

/* Responsive styles for file attachments */
@media (max-width: 768px) {
  .attached-files-container {
    margin-top: 10px;
    padding: 10px 12px;
  }
  
  .file-item {
    padding: 6px 10px;
  }
  
  .file-name {
    font-size: 13px;
  }
  
  .file-size {
    font-size: 11px;
  }
  
  .remove-file-btn {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .file-info {
    gap: 6px;
  }
  
  .file-name {
    font-size: 12px;
  }
  
  .file-size {
    display: none; /* Hide file size on very small screens */
  }
}

/*--------------------------------------------------------------
# Template Dropdown Styles
--------------------------------------------------------------*/
.template-dropdown {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-y: auto;
  /* Glassmorphism scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(71, 178, 228, 0.6) rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar for template dropdown */
.template-dropdown::-webkit-scrollbar {
  width: 20px;
}

.template-dropdown::-webkit-scrollbar-track {
  background-color: transparent;
}

.template-dropdown::-webkit-scrollbar-thumb {
  background-color: #d6dee1;
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
  cursor: pointer;
}

.template-dropdown::-webkit-scrollbar-thumb:hover {
  background-color: #a8bbbf;
  cursor: pointer;
}

.template-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px 12px 0 0;
}

.template-dropdown-header span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Open Sans", sans-serif;
}

.close-dropdown-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.close-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.template-list {
  padding: 8px 0;
}

.template-item {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Open Sans", sans-serif;
  border-radius: 8px;
  margin: 2px 8px;
}

.template-item:hover {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(4px);
}

.template-item i {
  font-size: 20px;
  color: #47b2e4;
  flex-shrink: 0;
}

.template-info {
  flex: 1;
  min-width: 0;
}

.template-name {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.template-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

/* Position template dropdown relative to chat interface */
.chat-interface {
  position: relative;
}

/* Responsive styles for template dropdown */
@media (max-width: 768px) {
  .template-dropdown {
    margin-top: 6px;
    max-height: 300px;
  }
  
  .template-dropdown-header {
    padding: 12px 16px;
  }
  
  .template-item {
    padding: 12px 16px;
    gap: 10px;
  }
  
  .template-item i {
    font-size: 18px;
  }
  
  .template-name {
    font-size: 14px;
  }
  
  .template-desc {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .template-dropdown {
    max-height: 250px;
  }
  
  .template-item {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .template-item i {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Template v5.3.3 Compatibility Overrides
--------------------------------------------------------------*/
/* Header fixes for new template */
.index-page .header {
  --background-color: #37517e;
}

/* Header background when scrolled - make it semi-transparent */
.index-page.scrolled .header {
  --background-color: rgba(55, 81, 126, 0.9);
}



/* Hero section adjustments */
#hero {
  width: 100%;
  min-height: 100vh;
  background: #37517e;
  position: relative;
  padding-top: 80px; /* Space for fixed header */
}

/* Ensure scroll-top button works */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #47b2e4;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background: #6bc1e9;
  color: #fff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/* Clients section custom styles */
.clients .clients-slider {
  margin-top: 30px;
}

.clients .clients-slider img {
  filter: grayscale(100%) opacity(0.7);
  max-height: 60px;
  transition: all 0.3s ease-in-out;
  padding: 15px 0;
}

.clients .clients-slider img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# CTA Section Fix
--------------------------------------------------------------*/
/* Ensure CTA section is visible */
#cta.cta {
  background: #37517e;
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

#cta.cta h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

#cta.cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

#cta.cta .cta-btn {
  background: #47b2e4;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

#cta.cta .cta-btn:hover {
  background: #209dd8;
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Form Lock State Styles
--------------------------------------------------------------*/
/* Visual indication when form is locked during submission */
.chat-input-wrapper.form-locked {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.chat-input-wrapper.form-locked::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 20px;
  z-index: 100;
  pointer-events: none;
}

.chat-input-wrapper.form-locked .chat-textarea {
  cursor: not-allowed;
}

.chat-input-wrapper.form-locked .action-btn,
.chat-input-wrapper.form-locked .send-btn,
.chat-input-wrapper.form-locked .expand-btn {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Ensure the send button spinner is visible above the overlay */
.chat-input-wrapper.form-locked .send-btn {
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

/* Lock state for suggestion chips */
.suggestion-chip.locked {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Lock state for template items */
.template-item.locked {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

/* Lock state for file remove buttons */
.remove-file-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Mobile adjustments for locked state */
@media (max-width: 768px) {
  .chat-input-wrapper.form-locked::before {
    border-radius: 16px;
  }
}

/*--------------------------------------------------------------
# Conversation Display in Textarea
--------------------------------------------------------------*/
/* Enhanced textarea for conversation display */
.chat-textarea.conversation-mode {
  font-family: "Open Sans", monospace;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Visual separator styles for conversation sections */
.chat-textarea.conversation-mode::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Improved readability for conversation text */
.chat-textarea:focus.conversation-mode {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}