/* File: css/tctt-subscribe.css */

/* Main wrapper for the form and the success message */
.tctt-subscribe-wrapper,
.tctt-subscribe-success {
  margin: 0 auto;
  text-align: left;
  color: var(--e-global-color-text);
  background: #000;
  border-radius: 10px;
  font-family: var(--e-global-typography-text-font-family);
  font-weight: var(--e-global-typography-text-font-weight);
  position: relative;
  padding: 20px;
}

/* --- NEW STYLES FOR HEADER --- */
.subscribe-form-heading {
    margin-bottom: 1.5rem; /* Space before the form elements */
}

.subscribe-form-details p {
    font-size: 1rem;
    font-family: var(--e-global-typography-text-font-family);
    font-weight: var(--e-global-typography-text-font-weight);
    color: var(--e-global-color-text);
    line-height: 1.5;
    margin: 0 0 1rem 0; /* Space between paragraphs */
}

.subscribe-form-details p:last-child {
    margin-bottom: 0;
}
/* --- END NEW STYLES --- */


/* Heading styles for form or success */
.tctt-subscribe-wrapper h2,
.tctt-subscribe-success h2 {
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: var(--e-global-typography-primary-font-family);
  color: var(--e-global-color-text)!important;
  text-align: left;
}

/* Center-align text inside the success message box */
.tctt-subscribe-success,
.tctt-subscribe-success h2,
.tctt-subscribe-success p {
  text-align: center;
}

/* Paragraph styles for the success message */
.tctt-subscribe-success p {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: var(--e-global-typography-primary-font-family);
  color: var(--e-global-color-text);
}

/* Form label */
.tctt-subscribe-wrapper label {
  display: block;
  text-align: left;
  font-size: 1rem;
  margin: 1rem 0 0.3rem;
  font-family: var(--e-global-typography-secondary-font-family);
  color: var(--e-global-color-text);
  font-weight: 700;
}

/* Form email input */
.tctt-subscribe-wrapper input[type="email"] {
  width: 100%;
  padding: 0.8rem;
  border: none;
  background: #222 !important;
  color: var(--e-global-color-text) !important;
  border-radius: 5px;
  font-size: 0.9rem;
  box-sizing: border-box;
  font-family: var(--e-global-typography-text-font-family);
  font-weight: var(--e-global-typography-text-font-weight);
  appearance: none;
}

/* Input placeholder text */
.tctt-subscribe-wrapper input[type="email"]::placeholder {
  color: #aaa !important;
  opacity: 1;
}

/* Form submit button */
button#subscribe-submit {
  /* Establish container for size calculations */
  container-type: inline-size;
  container-name: submit-btn;

  width: 100%;
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-text);
  padding: 1rem;
  border: none;
  border-radius: 6px;

  /* --- KEY UPDATES BELOW --- */
  
  /* 1. Min size lowered to 0.5rem (approx 8px) to allow it to get very small if needed.
     2. Preferred size lowered to 4cqi. 
        (4% of container width is better for long text like "ACCESS FREE ONLINE...")
  */
  font-size: clamp(0.5rem, 4cqi, 1.2rem);
  
  /* Keeps text on one line */
  white-space: nowrap;
  
  /* Hides the '...' but ensures text doesn't spill out visually */
  /* Note: If the text is STILL too long for 0.5rem, it will clip slightly rather than show dots */
  overflow: hidden; 
  /* Removed 'text-overflow: ellipsis' so you don't get the dots */

  /* ------------------------- */

  font-weight: 700;
  text-transform: uppercase;
  margin-top: 1.5rem;
  cursor: pointer;
  font-family: var(--e-global-typography-primary-font-family);
  
  /* Optional: Center the text if it gets small */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Disabled state for the submit button */
button#subscribe-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}