/* MailerLite Newsletter Embed Custom Styles for News Page */
/* Matches GlitchRealm's cyan theme */

/* Override MailerLite's default form styles */
.ml-embedded .ml-form-embedWrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Form container */
.ml-embedded .ml-form-embedBody {
  padding: 0 !important;
}

/* Input field */
.ml-embedded input[type="email"] {
  width: 100% !important;
  background: #08131b !important;
  border: 1px solid #12313d !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  color: #d7e5e8 !important;
  font-size: 0.8rem !important;
  font-family: 'Rajdhani', Arial, sans-serif !important;
  margin-bottom: 8px !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

.ml-embedded input[type="email"]:focus {
  border-color: #00fff9 !important;
  box-shadow: 0 0 10px rgba(0, 255, 249, 0.2) !important;
  outline: none !important;
}

.ml-embedded input[type="email"]::placeholder {
  color: rgba(215, 229, 232, 0.5) !important;
}

/* Submit button */
.ml-embedded button[type="submit"] {
  width: 100% !important;
  background: linear-gradient(90deg, #00fff9, #008cff) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.6px !important;
  color: #02141c !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  font-family: 'Orbitron', Arial, sans-serif !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

.ml-embedded button[type="submit"]:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 255, 249, 0.3) !important;
}

/* Checkbox */
.ml-embedded input[type="checkbox"] {
  accent-color: #00fff9 !important;
}

.ml-embedded .ml-form-checkboxRow label {
  color: #c3d2d6 !important;
  font-size: 0.7rem !important;
  font-family: 'Rajdhani', Arial, sans-serif !important;
}

/* Privacy policy link */
.ml-embedded a {
  color: #00fff9 !important;
  text-decoration: underline !important;
}

.ml-embedded a:hover {
  color: #00cccc !important;
}

/* Success message */
.ml-embedded .ml-form-successBody h4 {
  color: #00ff41 !important;
  font-family: 'Orbitron', Arial, sans-serif !important;
  font-size: 1rem !important;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5) !important;
}

.ml-embedded .ml-form-successBody p {
  color: #b8d4d8 !important;
  font-size: 0.8rem !important;
}

/* Error messages */
.ml-embedded .ml-error {
  color: #ff0080 !important;
  font-size: 0.7rem !important;
  margin-top: 4px !important;
}

.ml-embedded .ml-error input {
  border-color: #ff0080 !important;
}

/* Loading state */
.ml-embedded .loading {
  opacity: 0.6 !important;
}

/* Form labels */
.ml-embedded label {
  color: #7edcf0 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  font-family: 'Orbitron', Arial, sans-serif !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Compact layout for sidebar */
.news-sidebar .ml-embedded .ml-form-embedWrapper {
  max-width: 100% !important;
}

/* Hide any extra MailerLite branding or headers */
.ml-embedded .ml-form-embedHeader {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .ml-embedded input[type="email"],
  .ml-embedded button[type="submit"] {
    font-size: 0.85rem !important;
    padding: 12px 14px !important;
  }
}

/* ========================================= */
/* HubSpot Newsletter Form Styling */
/* ========================================= */

.newsletter-section {
    background: linear-gradient(135deg, rgba(0, 255, 249, 0.05) 0%, rgba(0, 140, 255, 0.05) 100%);
    padding: 60px 20px;
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 249, 0.2);
}

.newsletter-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    background: linear-gradient(90deg, #00fff9, #008cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.newsletter-section p {
    color: #cfe5e8;
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    gap: 15px;
}

.newsletter-form input[type="email"] {
    padding: 12px 16px;
    background: rgba(8, 19, 27, 0.8);
    border: 2px solid rgba(0, 255, 249, 0.3);
    border-radius: 4px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-cyan, #00fff9);
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    color: #cfe5e8;
    font-size: 0.9rem;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #00fff9;
}

.consent-label a {
    color: var(--primary-cyan, #00fff9);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.consent-label a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.newsletter-form .neural-button {
    padding: 12px 32px;
    background: linear-gradient(90deg, #00fff9, #008cff);
    border: none;
    border-radius: 4px;
    color: #0a0a0a;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form .neural-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 249, 0.4);
}

.newsletter-form .neural-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 40px 20px;
        margin-top: 60px;
    }
    
    .newsletter-section h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
}
