/* Security Notice Popup Styles */
/* Using MBFX brand colors: --brandColor1: #00905b, --brandColor1-light: #03bb78, --brandColor2: #e3373f */

/* Modal Backdrop */
.security-notice-backdrop {
  background-color: rgba(0, 0, 0, 0.763) !important;
  
}

/* Modal Dialog - Wider but Shorter */
.security-notice-modal {
  max-width: 520px;
  margin: 1rem auto;
}

/* Modal Content Container - White Background */
.security-notice-content {
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: #ffffff;
}

/* Modal Header - Minimal Padding */
.security-notice-header {
  border-bottom: none;
  padding: 8px 12px 0;
  position: relative;
}

/* Smaller Close Button */
.security-notice-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: ;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
  opacity: 1;
  transition: all 0.3s ease;
  z-index: 10;
}

.security-notice-close:hover {
  background: #000000;
  transform: scale(1.05);
}

/* Modal Body - Significantly Reduced Padding */
.security-notice-body {
  padding: 12px 25px 20px;
  text-align: center;
}

/* Logo Section - Much Smaller */
.security-notice-logo {
    margin-bottom: 12px;
    background: black;
    padding: 7px;
}

.mbfx-logo {
  max-width: 110px;
  height: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Title - Compact and Professional */
.security-notice-title {
  color: var(--brandColor1, #00905b);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: none;
}

/* Content Text - Compact and Professional */
.security-notice-content-text {
  text-align: left;
  line-height: 1.5;
}

.security-notice-intro {
  font-size: 15px;
  color: #000000;
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.security-notice-warning {
  font-size: 15px;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 600;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
}

/* Contact Information Highlight - Compact */
.security-notice-contact {
  background: #e8f5e8;
  color: #000000;
  padding: 14px;
  border-radius: 6px;
  margin: 15px 0;
  text-align: center;
  border: 2px solid var(--brandColor1, #00905b);
}

.contact-label {
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #000000;
}

.contact-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: var(--brandColor1, #00905b);
}

.phone-icon {
  font-size: 22px;
  animation: pulse 2s infinite;
}

.phone-number {
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Security Assurance - Compact */
.security-assurance {
  font-size: 14px;
  color: #000000;
  margin: 15px 0;
  padding: 12px;
  background: #f0f8f0;
  border: 1px solid #c3e6c3;
  border-radius: 5px;
  font-weight: 500;
  line-height: 1.4;
}

/* Warning Message - Compact */
.security-warning {
  background: #fff8e1;
  border: 1px solid #ffcc02;
  border-radius: 5px;
  padding: 12px;
  margin: 15px 0;
}

.security-warning p {
  margin: 0;
  color: #000000;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

/* Closing Message - Compact */
.security-notice-closing {
  font-size: 14px;
  color: #000000;
  margin: 15px 0 0;
  font-weight: 500;
  text-align: center;
  font-style: italic;
  line-height: 1.3;
}

/* Footer Button - Compact */
.security-notice-footer {
  text-align: center;
  margin-top: 18px;
}

.security-notice-btn {
  background: linear-gradient(135deg, var(--brandColor1, #00905b), var(--brandColor1-light, #03bb78));
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 144, 91, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.security-notice-btn:hover {
  background: linear-gradient(135deg, var(--brandColor1-light, #03bb78), var(--brandColor1, #00905b));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 144, 91, 0.4);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .security-notice-modal {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .security-notice-body {
    padding: 20px 25px 30px;
  }
  
  .mbfx-logo {
    max-width: 150px;
  }
  
  .security-notice-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .contact-number {
    font-size: 18px;
    flex-direction: column;
    gap: 5px;
  }
  
  .phone-number {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .security-notice-body {
    padding: 15px 20px 25px;
  }
  
  .mbfx-logo {
    max-width: 120px;
  }
  
  .security-notice-title {
    font-size: 18px;
  }
  
  .security-notice-intro,
  .security-notice-warning,
  .security-assurance {
    font-size: 14px;
  }
  
  .contact-number {
    font-size: 16px;
  }
  
  .phone-number {
    font-size: 18px;
  }
}

/* Animation for modal entrance */
.security-notice-backdrop.show .security-notice-content {
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Persistent Alert Widget - Bottom Left Position */
.security-alert-widget {
  position: fixed;
  left: 20px;
  bottom: 45px;
  width: 45px;
  height: 45px;
  background: var(--brandColor2, #e3373f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(227, 55, 63, 0.4);
  transition: all 0.3s ease;
  opacity: 0.8;
}

.security-alert-widget:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(227, 55, 63, 0.6);
}

.security-alert-widget .alert-icon {
  color: white;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

/* Widget Animation */
.security-alert-widget {
  animation: alertPulse 3s infinite;
}

@keyframes alertPulse {
  0%, 70%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  35% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.security-alert-widget:hover {
  animation: none;
}

/* Mobile positioning for alert widget - Bottom Left */
@media (max-width: 768px) {
  .security-alert-widget {
    left: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
  }

  .security-alert-widget .alert-icon {
    font-size: 20px;
  }
}
