/**
 * One Click Subscriptions - Signup Styles
 */

/* Main container styles */
.ocs-signup-wrapper {
  max-width: 100%;
  margin: 0 auto;
  background-color: #f8f8f8; /* From first definition */
  min-height: 55vh; /* From first definition */
  display: flex; /* From first definition */
  align-items: center; /* From first definition */
  justify-content: center; /* From first definition */
}

.ocs-signup-container {
  background: #fff;
  max-width: 1100px;
  width: 100%;
  padding: 10px 30px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); /* Consolidated: Used 0.08 from Salient override */
}

/* Header styles */
.ocs-signup-header {
  text-align: center;
  margin-bottom: 10px;
}

.ocs-signup-header h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #022f52;
  text-align: center;
  line-height: 1.2;
}

.ocs-signup-header h1 span {
  color: #54c3f3;
}

.ocs-signup-header h2 {
  /* Added from two-column section */
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
  margin-bottom: 0;
}

.ocs-signup-header p {
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

.ocs-trial-info {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #f0f9ff;
  border-radius: 20px;
  font-weight: 500;
  color: #0073aa;
  border: 1px solid #e0f0ff;
}

/* Alternative signup section styles */
.ocs-alternative-signup {
  margin-top: 20px;
  width: 100%;
}

.ocs-alternative-text {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 0px;
  font-style: italic;
  padding-bottom: 5px;
}

.ocs-toggle-forms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 30px;
  background: #fafafa;
  border: 0;
  border-radius: 6px;
  color: #54c3f3;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  max-width: 200px;
  margin: auto;
}

.ocs-toggle-forms:hover {
  background-color: #f8f9ff;
  border-color: #54c3f3;
  color: #0073aa;
}

.ocs-toggle-forms:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(84, 195, 243, 0.2);
}

.ocs-toggle-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.ocs-toggle-forms.expanded .ocs-toggle-icon {
  transform: rotate(180deg);
}

.ocs-collapsible-forms {
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  max-height: 0;
}

.ocs-collapsible-forms.expanded {
  opacity: 1;
  max-height: 600px; /* Adjust based on your form height */
  margin-top: 20px;
}

/* Tab styles */
.ocs-tabs {
  margin-bottom: 30px;
}

.ocs-tab-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-bottom: 1px solid #ddd;
}

.ocs-tab {
  padding: 14px 40px 0px 40px;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background-color: #f5f5f5;
  color: #555;
  font-weight: 500;
  transition: all 0.2s ease;
  line-height: 1.1;
  font-size: 14px;
}

.ocs-tab:hover {
  background-color: #e8e8e8;
  color: #333;
}

.ocs-tab.active {
  background-color: #54c3f3;
  border-color: #ddd;
  margin-bottom: -1px;
  padding-bottom: 13px;
  color: #ffffff;
}

.ocs-signup-header h5 {
  text-align: left;
  padding-top: 15px;
  font-weight: normal !important;
  color: #7e7e7e;
  padding-bottom: 10px;
  font-size: 19px !important;
}

.ocs-tab-content {
  display: none;
}

.ocs-tab-content.active {
  display: block;
}

/* Form styles */
.ocs-form-group {
  margin-bottom: 20px;
}

.ocs-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.ocs-form-group input[type="text"],
.ocs-form-group input[type="email"],
.ocs-form-group input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background-color: #f9f9f9;
}

.ocs-form-group input:focus {
  outline: none;
  border-color: #0073aa;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.ocs-form-group .required {
  color: #e2401c;
}

/* Form options */
.ocs-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ocs-remember {
  display: flex;
  align-items: center;
}

.ocs-remember input[type="checkbox"] {
  margin-right: 8px;
}

.ocs-lost-password {
  color: #0073aa;
  text-decoration: none;
  font-size: 14px;
}

.ocs-lost-password:hover {
  text-decoration: underline;
}

.ocs-already-have-account {
  /* Added from two-column section */
  margin-top: 15px;
  font-size: 14px;
}

.ocs-already-have-account a {
  /* Added from two-column section */
  color: #54c3f3;
  text-decoration: none;
  font-weight: 500;
}

/* Terms styles */
.ocs-terms-header {
  text-align: center;
  margin-bottom: 20px;
}

.ocs-terms-header h2 {
  font-size: 24px;
  color: #333;
}

.ocs-terms-header p {
  color: #666;
}

.ocs-terms-content {
  max-height: 450px;
  overflow-y: auto;
  padding: 5px;
  margin-bottom: 20px;
  border: 1px solid #eee; /* Consolidated: Used #eee from modal/terms section */
  border-radius: 6px;
  background-color: #f9f9f9;
}

.ocs-terms-content h2 {
  font-size: 18px;
}

.ocs-terms-content p {
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.ocs-terms-actions {
  text-align: center;
  margin-bottom: 20px;
}

/* Button styles */
.ocs-submit-btn,
.ocs-button {
  width: 100%;
  padding: 12px 20px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.ocs-submit-btn:hover,
.ocs-button:hover {
  background: #005a87;
  color: #fff;
}

.ocs-submit-btn:disabled,
.ocs-button:disabled {
  background: #cccccc !important; /* Important to override Nectar button styles */
  cursor: not-allowed;
}

.ocs-button-active {
  background: #005a87;
}

.ocs-button-processing {
  /* Added from processing section */
  opacity: 0.8;
  cursor: progress !important;
}

/* Message styles */
.ocs-form-messages {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  display: none;
}

.ocs-form-messages.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.ocs-form-messages.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.ocs-form-messages.success {
  display: none !important;
}

.ocs-error-message {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #e2401c;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 3px;
}

/* Confirmation styles */
.ocs-confirmation-header {
  text-align: center;
  margin-bottom: 10px;
}

.ocs-success-icon {
  margin: 10px auto 0;
  width: 64px;
  height: 64px;
}

.ocs-confirmation-header h2 {
  color: #4caf50;
  margin-bottom: 10px;
  font-size: 28px;
}

.ocs-confirmation-header p {
  font-size: 16px;
  color: #555;
}

.ocs-confirmation-details {
  margin-bottom: 30px;
}

.ocs-user-details,
.ocs-subscription-details {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
}

.ocs-user-details h3,
.ocs-subscription-details h3 {
  margin-top: 0;
  margin-bottom: 0 !important;
  font-size: 22px !important;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  font-weight: bold !important;
}

.ocs-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.ocs-detail-row:last-child {
  border-bottom: none;
}

.ocs-detail-label {
  font-weight: 600;
  color: #555;
}

.ocs-status {
  color: #4caf50;
  font-weight: 600;
}

.ocs-confirmation-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.ocs-primary-button {
  flex: 1;
  background-color: #0073aa;
  max-width: 400px;
  margin: auto;
}

.ocs-secondary-button {
  flex: 1;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.ocs-secondary-button:hover {
  background-color: #e0e0e0;
  color: #333;
}

.ocs-confirmation-help {
  margin-top: 20px;
  padding: 15px;
  background-color: #f0f9ff;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  color: #0073aa;
}

/* Shortcode button styles */
.ocs-trial-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.ocs-trial-button:hover {
  background-color: #005a87;
  color: #fff;
  text-decoration: none;
}

/* Two-column layout */
.ocs-signup-columns {
  display: flex;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

/* Left column styles */
.ocs-signup-left-column {
  flex: 0 0 40%;
  background-color: #54c3f3;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ocs-image-container {
  padding: 20px;
  margin: auto;
}

.ocs-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.ocs-image-container-mobile img {
  width: 100%;
  height: auto;
  display: none;
}

.ocs-feature-text {
  padding: 20px;
  color: #fff;
  margin-top: auto;
}

.ocs-feature-text h3 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #fff;
}

.ocs-feature-text p {
  color: rgba(255, 255, 255, 0.9);
}

/* Right column styles */
.ocs-signup-right-column {
  flex: 0 0 60%;
}

.ocs-signup-columns .ocs-signup-container {
  box-shadow: none;
  border-radius: 0;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
}

/* Modal styling improvements */
.ocs-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Keep processing indicator for buttons */
/* Removed .ocs-loading spinner */

/* Responsive styles */
@media (max-width: 768px) {
  .ocs-signup-container {
    padding: 30px 20px;
  }

  .ocs-form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .ocs-lost-password {
    margin-top: 10px;
  }

  .ocs-confirmation-actions {
    flex-direction: column;
  }

  /* Two-column specific adjustments for 768px */
  .ocs-signup-columns {
    flex-direction: column;
  }

  .ocs-signup-left-column,
  .ocs-signup-right-column {
    flex: 0 0 100%;
  }

  .ocs-signup-left-column {
    padding-bottom: 20px;
  }

  /* Collapsible forms adjustments for tablets */
  .ocs-collapsible-forms.expanded {
    max-height: 700px; /* Increase max-height for smaller screens */
  }
}

@media (max-width: 690px) {
  /* Salient specific adjustments for 690px */
  .ocs-signup-container {
    padding: 30px 20px;
  }

  .ocs-tabs .ocs-tab-list {
    flex-direction: row; /* Keep horizontal, but allow wrapping */
    flex-wrap: wrap;
  }

  .ocs-tab {
    flex: 1; /* Make tabs equal width */
    text-align: center;
  }

  /* Collapsible forms adjustments */
  .ocs-toggle-forms {
    padding: 10px 15px;
    font-size: 13px;
  }

  .ocs-alternative-text {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .ocs-signup-wrapper {
    padding: 15px 10px;
  }

  .ocs-signup-container {
    padding: 20px 15px;
  }

  .ocs-tab-list {
    flex-direction: column; /* Override 690px rule for smaller screens */
    border-bottom: none;
  }

  .ocs-tab {
    margin-right: 0;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: unset; /* Remove flex: 1 from 690px */
    text-align: left; /* Revert text-align */
  }

  .ocs-tab.active {
    margin-bottom: 5px;
  }

  .ocs-form-group label,
  .ocs-form-group input {
    font-size: 15px;
  }

  .ocs-detail-label {
    margin-bottom: 5px;
  }

  /* Two-column specific adjustments for 480px */
  .ocs-signup-left-column {
  }
  .ocs-image-container img {
    display: none;
  }

  .ocs-image-container-mobile img {
    display: block;
  }

  /* Collapsible forms adjustments for mobile */
  .ocs-toggle-forms {
    padding: 12px 15px;
    font-size: 14px;
    gap: 6px;
  }

  .ocs-alternative-text {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .ocs-collapsible-forms.expanded {
    max-height: 800px; /* Increase max-height for mobile screens */
  }

  .ocs-toggle-forms .ocs-toggle-text {
    font-size: 13px;
  }
}

.ocs-tabs input {
  padding: 7px !important;
}

button.ocs-submit-btn.nectar-button.large.regular.accent-color.regular-button {
  padding-left: 80px !important;
  padding-right: 80px !important;
}

li.ocs-tab {
  list-style: none !important;
}

/* Ensuring disabled styles have higher specificity if needed */
.ocs-button:disabled {
  background-color: #c1c1c1 !important;
}

.ocs-button:disabled:hover {
  background-color: #c1c1c1 !important;
}

/* Hide redundant error messages for users with existing subscriptions */
.ocs-logged-in-message
  + .ocs-form-messages.error:contains("already have an active subscription") {
  display: none !important;
}

/* Alternative selector if the above doesn't work with your jQuery version */
.ocs-logged-in-message ~ .ocs-form-messages.error {
  display: none !important;
}

/* Add specific selector for the red box at the bottom */
.ocs-signup-right-column > .ocs-form-messages.error:last-child {
  display: none !important;
}

/* Add this to your ocs-signup.css file */
.ocs-loading-spinner {
  display: inline-block;
  width: 200px;
  height: 200px;
  border: 14px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #54c3f3;
  animation: ocs-spin 1s ease-in-out infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

@keyframes ocs-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.wpb_row.full-width-content {
  margin-left: 0 !important;
  left: 0 !important;
  width: 100% !important;
}

.ocs-terms-content * {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 0 !important;
}

.ocs-google-separator {
  padding: 10px;
  font-size: 15px;
  color: #747474;
}

/* Additional smooth animation improvements */
.ocs-collapsible-forms * {
  transition: opacity 0.3s ease;
}

.ocs-collapsible-forms:not(.expanded) * {
  opacity: 0;
}

.ocs-collapsible-forms.expanded * {
  opacity: 1;
}

/* Enhanced animations and micro-interactions for the collapsible forms */

/* Smooth focus transitions */
.ocs-toggle-forms:focus-visible {
  outline: 2px solid #54c3f3;
  outline-offset: 2px;
}

/* Enhanced button states */
.ocs-toggle-forms:active {
  transform: translateY(1px);
  transition: transform 0.1s ease;
}

/* Improved icon rotation with bounce effect */
.ocs-toggle-icon {
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ocs-toggle-forms.expanded .ocs-toggle-icon {
  transform: rotate(180deg);
}

/* Enhanced collapsible animation */
.ocs-collapsible-forms {
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  transform: translateY(-10px);
}

.ocs-collapsible-forms.expanded {
  opacity: 1;
  max-height: 800px; /* Generous max-height */
  margin-top: 20px;
  transform: translateY(0);
}

/* Staggered animation for form elements */
.ocs-collapsible-forms .ocs-tabs {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.1s; /* Delay for stagger effect */
}

.ocs-collapsible-forms.expanded .ocs-tabs {
  opacity: 1;
  transform: translateY(0);
}

.ocs-collapsible-forms .ocs-tab-content {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.2s; /* Longer delay for stagger */
}

.ocs-collapsible-forms.expanded .ocs-tab-content {
  opacity: 1;
  transform: translateY(0);
}

/* Improved form input focus animations */
.ocs-collapsible-forms .ocs-form-group input {
  transition: all 0.3s ease;
}

.ocs-collapsible-forms .ocs-form-group input:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 195, 243, 0.15);
}

/* Loading state for toggle button */
.ocs-toggle-forms.loading {
  pointer-events: none;
  opacity: 0.7;
}

.ocs-toggle-forms.loading .ocs-toggle-icon {
  animation: ocs-loading-pulse 1s ease-in-out infinite;
}

@keyframes ocs-loading-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Improved mobile experience */
@media (max-width: 768px) {
  .ocs-toggle-forms {
    padding: 14px 20px;
    font-size: 15px;
    margin-bottom: 20px;
  }

  .ocs-alternative-text {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .ocs-collapsible-forms.expanded {
    max-height: 900px; /* More room on mobile */
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .ocs-toggle-forms {
    padding: 12px 16px;
    font-size: 14px;
    gap: 6px;
  }

  .ocs-alternative-text {
    font-size: 13px;
    margin-bottom: 14px;
    padding: 0 5px;
  }

  .ocs-collapsible-forms.expanded {
    max-height: 1000px; /* Even more room on small mobile */
  }

  /* Ensure touch targets are adequate */
  .ocs-toggle-forms {
    min-height: 44px; /* iOS recommended touch target */
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .ocs-toggle-forms {
    border-width: 2px;
    border-color: currentColor;
  }

  .ocs-toggle-forms:hover {
    background-color: currentColor;
    color: white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .ocs-collapsible-forms,
  .ocs-toggle-icon,
  .ocs-tabs,
  .ocs-tab-content,
  .ocs-form-group input {
    transition: none;
  }

  .ocs-collapsible-forms.expanded {
    animation: none;
  }
}

/* Dark mode support (if your theme supports it) */
@media (prefers-color-scheme: dark) {
  .ocs-toggle-forms {
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .ocs-toggle-forms:hover {
    background-color: rgba(84, 195, 243, 0.1);
    border-color: #54c3f3;
  }

  .ocs-alternative-text {
    color: #a0aec0;
  }
}
