/* Your Voice Matters Widget - CPD Bangladesh */

/* Screen reader only content */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.voice-matters-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  background-attachment: fixed;
}

.voice-matters-wrapper.parallax-enabled {
  background-attachment: fixed;
  background-size: 130%;
}

.voice-matters-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  z-index: 1;
  display: none;
}

.voice-matters-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 20px;
  max-width: 800px;
}

.voice-matters-title {
  color: #ffffff;
  margin: 0 0 20px 0;
  font-weight: 600;
  font-size: 40px;
  line-height: 125%;
  letter-spacing: 0;
  text-align: center;

}

.voice-matters-description {
  color: #ffffff;
  margin: 0 0 30px 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0;
  text-align: center;

}

.voice-matters-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background-color: #0093CA;
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: 0;
}

.voice-matters-button:hover {
  background-color: #006fa3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 147, 202, 0.3);
}

.voice-matters-button:active {
  transform: translateY(0);
}

.voice-matters-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.voice-matters-button .btn-spinner {
  display: none;
}

.voice-matters-button .btn-spinner svg {
  animation: spin 1s linear infinite;
}

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

.voice-matters-button .btn-arrow {
  transition: transform 0.3s ease;
}

.voice-matters-button:hover .btn-arrow {
  transform: translateX(2px);
}

.voice-matters-note {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: 0;

}

/* Responsive Design */
@media (max-width: 768px) {
  .voice-matters-wrapper {
    min-height: 300px;
  }

  .voice-matters-content {
    padding: 40px 20px;
  }

  .voice-matters-title {
    font-size: 32px;
  }

  .voice-matters-description {
    font-size: 14px;
  }

  .voice-matters-button {
    padding: 10px 24px;
    font-size: 13px;
  }

  .voice-matters-note {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .voice-matters-wrapper {
    min-height: 250px;
  }

  .voice-matters-content {
    padding: 30px 15px;
  }

  .voice-matters-title {
    font-size: 24px;
  }

  .voice-matters-description {
    font-size: 13px;
  }

  .voice-matters-button {
    padding: 8px 20px;
    font-size: 12px;
  }

  .voice-matters-note {
    font-size: 11px;
  }
}

/* Dark theme adjustments */
.elementor-editor-active .voice-matters-wrapper {
  min-height: 500px;
}

/* Animation for button */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 147, 202, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 147, 202, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 147, 202, 0);
  }
}

.voice-matters-button:focus {
  outline: 2px solid #0093CA;
  outline-offset: 2px;
}

/* Your Views Form Styles */
.your-views-widget {
  margin: 0 auto;
  padding: 80px 20px;
}

.your-views-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.your-views-left,
.your-views-right {
  flex: 1;
}

.your-views-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #000000;
}

.your-views-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 0;
  color: #666666;
}

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

.your-views-form .form-input,
.your-views-form .form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
}

.your-views-form .form-input:focus,
.your-views-form .form-textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 5px rgba(0, 147, 202, 0.3);
}

.your-views-form .form-input::placeholder,
.your-views-form .form-textarea::placeholder {
  color: #999999;
  opacity: 1;
}

.your-views-submit-btn {
  background-color: #0093CA;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.your-views-submit-btn:hover {
  background-color: #006fa3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 147, 202, 0.3);
}

.your-views-submit-btn:active {
  transform: translateY(0);
}

.your-views-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.your-views-submit-btn svg {
  transition: transform 0.3s ease;
}

.your-views-submit-btn:hover svg {
  transform: translateX(2px);
}

.your-views-message {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
}

.your-views-message::after {
  content: "Click to dismiss";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.7;
  bottom: 35px;
  font-weight: normal;
}

.your-views-message.success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.your-views-message.success::before {
  content: "✓ ";
  font-weight: bold;
}

.your-views-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
  padding-bottom: 35px;
}

.your-views-message.error::before {
  content: "⚠ ";
  font-weight: bold;
}

.your-views-message:hover {
  opacity: 0.9;
}

/* Responsive Design for Form */
@media (max-width: 768px) {
  .your-views-content {
    flex-direction: column;
    gap: 30px;
  }

  .your-views-title {
    font-size: 2em;
  }

  .your-views-widget {
    padding: 30px 15px;
  }

  .your-views-form .form-input,
  .your-views-form .form-textarea {
    padding: 12px;
    font-size: 14px;
  }

  .your-views-submit-btn {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .your-views-title {
    font-size: 1.8em;
  }

  .your-views-description {
    font-size: 1em;
  }

  .your-views-widget {
    padding: 0;
  }
}

.your-reviews-form input, .your-reviews-form textarea {
  width: 100%;
  padding: 16px 20px 16px 0;
  border-radius: 0;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
  color: #000;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 100%;
}

.your-reviews-form textarea::placeholder {
  color: #000;

}

.your-reviews-form input::placeholder {
  width: 100%;
  padding: 16px 20px 16px 0;
  border-radius: 0;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
  color: #000;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 100%;
}

.your-reviews-form input:focus, .your-reviews-form textarea:focus {
  outline: none;
}

.your-views-submit-btn {
  margin-top: 30px;
}

@media (min-width: 1024px) {
  .your-views-left {
    margin-right: 20%;
  }
}

@media (max-width: 767px) {
  .your-views-right {
    width: 100%;
  }
}

/* Form validation and enhancement styles */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-input.error,
.form-textarea.error {
  border-bottom-color: #dc3545 !important;
  background-color: #fff5f5 !important;
}

.field-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: block;
  font-weight: 500;
}

/* Character counter styles */
.character-count {
  text-align: right;
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  transition: color 0.3s ease;
}

.character-count.warning {
  color: #ffa500;
  font-weight: 500;
}

.character-count.danger {
  color: #dc3545;
  font-weight: 600;
}

/* Form field focus and validation states */
.your-reviews-form input:focus,
.your-reviews-form textarea:focus {
  outline: none;
  border-bottom-color: #0093CA;
  background-color: #f8f9fa;
}

.your-reviews-form input:valid:not(:placeholder-shown),
.your-reviews-form textarea:valid:not(:placeholder-shown) {
  border-bottom-color: #28a745;
}

/* Button states enhancement */
.voice-matters-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.voice-matters-button .btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.voice-matters-button .btn-spinner svg {
  animation: spin 1s linear infinite;
}

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

/* Message styles enhancement */
.your-views-message {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.your-views-message::after {
  content: "Click to dismiss";
  position: absolute;
  right: 20px;
  bottom: 5px;
  font-size: 11px;
  opacity: 0.7;
  font-weight: normal;
}

.your-views-message.success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.your-views-message.success::before {
  content: "✓ ";
  font-weight: bold;
  color: #28a745;
}

.your-views-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.your-views-message.error::before {
  content: "⚠ ";
  font-weight: bold;
  color: #dc3545;
}

.your-views-message:hover {
  opacity: 0.9;
  transform: scale(0.995);
  transition: all 0.2s ease;
}

/* Honeypot field - ensure it's completely hidden */
.your-reviews-form input[name="website"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Loading state improvements */
.voice-matters-button .btn-text,
.voice-matters-button .btn-arrow {
  transition: opacity 0.2s ease;
}

/* Accessibility improvements */
.form-input:focus,
.form-textarea:focus {
  box-shadow: 0 0 0 2px rgba(0, 147, 202, 0.2);
}

.field-error {
  font-weight: 500;
  margin-top: 5px;
  padding: 2px 0;
}

/* Enhanced responsive behavior */
@media (max-width: 768px) {
  .character-count {
    font-size: 10px;
  }

  .field-error {
    font-size: 11px;
  }

  .your-views-message {
    font-size: 13px;
    padding: 12px 15px;
  }

  .your-views-message::after {
    right: 15px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .form-group {
    margin-bottom: 15px;
  }

  .your-reviews-form input,
  .your-reviews-form textarea {
    padding: 12px 15px 12px 0;
    font-size: 13px;
  }
}

