/* =========================================
   WRAPPER (NO GLOBAL BACKGROUND OVERRIDE)
========================================= */

.verify-wrapper {
  min-height: calc(100vh - 120px);
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f6f9;
}

/* =========================================
   MAIN MODERN CARD
========================================= */

.verify-card-modern {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.08);
  border-top: 6px solid #1e6f43;
  position: relative;
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   VERIFIED STATUS BADGE
========================================= */

/* =========================================
   VERIFIED STATUS BADGE & VERIFICATION FAILED
========================================= */

.verify-status {
  display: inline-flex;
  align-items: center;
  background: #e9f5ef;
  color: #1e6f43;
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 30px;
}

.verify-status.invalid {
  background: #fff4f4;
  color: #b02a2a;
}

/* Green pulse for verification failed - makes it eye-catching */
.verify-status.invalid .status-dot {
  background: #dc3545;
  animation: pulseRed 1.8s infinite;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #1e6f43;
  border-radius: 50%;
  margin-right: 10px;
  animation: pulse 1.8s infinite;
}

/* Green pulse for active status */
@keyframes pulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(30,111,67,0.4);
    transform: scale(1);
  }
  70% { 
    box-shadow: 0 0 0 10px rgba(30,111,67,0);
    transform: scale(1.1);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(30,111,67,0);
    transform: scale(1);
  }
}

/* Red pulse for verification failed/invalid status */
@keyframes pulseRed {
  0% { 
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    transform: scale(1);
  }
  70% { 
    box-shadow: 0 0 0 12px rgba(220, 53, 69, 0);
    transform: scale(1.2);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    transform: scale(1);
  }
}

/* =========================================
   DOCTOR NAME
========================================= */

.doc-name {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1e6f43;
  letter-spacing: 0.5px;
}

/* =========================================
   DETAILS GRID
========================================= */

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 50px;
}

.detail-item span {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.detail-item strong {
  font-size: 16px;
  color: #222;
  font-weight: 600;
}

/* =========================================
   EXPIRY WARNINGS & NOTICES
========================================= */

.expiry-warning {
  background: linear-gradient(135deg, #fff9e6 0%, #fff4e0 100%);
  border-left: 4px solid #ff9800;
  padding: 16px 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  animation: slideInRight 0.5s ease;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.1);
}

.expiry-warning-icon {
  font-size: 28px;
  animation: bounce 1s ease infinite;
}

.expiry-warning-content {
  flex: 1;
}

.expiry-warning-content strong {
  color: #ff9800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}

.expiry-warning-content p {
  margin: 0;
  color: #856404;
  font-size: 14px;
}

.highlight {
  color: #ff9800;
  font-size: 18px;
  font-weight: 700;
  animation: pulse 1.5s ease infinite;
}

.expiry-info {
  background: linear-gradient(135deg, #e8f0fe 0%, #e3ebf9 100%);
  border-left: 4px solid #2196f3;
  padding: 16px 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideInRight 0.5s ease;
  box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
}

.expiry-info-icon {
  font-size: 28px;
}

.expiry-info-content {
  flex: 1;
}

.expiry-info-content strong {
  color: #2196f3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}

.expiry-info-content p {
  margin: 0;
  color: #0c5460;
  font-size: 16px;
  font-weight: 600;
}

/* =========================================
   NOT FOUND STYLES
========================================= */

.not-found-container {
  text-align: center;
  animation: fadeUp 0.6s ease forwards;
}

.not-found-content {
  padding: 20px 0;
}

.not-found-icon-wrapper {
  margin-bottom: 30px;
}

.not-found-icon {
  font-size: 80px;
  display: inline-block;
  animation: bounce 1s ease;
}

.not-found-title {
  font-size: 28px;
  font-weight: 700;
  color: #b02a2a;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.not-found-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #b02a2a;
  border-radius: 3px;
}

.not-found-message {
  max-width: 500px;
  margin: 30px auto;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================
   EXPIRED STYLES
========================================= */

.expired-container {
  text-align: center;
  animation: fadeUp 0.6s ease forwards;
}

.expired-content {
  padding: 20px 0;
}

.expired-icon-wrapper {
  margin-bottom: 30px;
}

.expired-icon {
  font-size: 80px;
  display: inline-block;
  animation: shake 0.8s ease, float 3s ease-in-out infinite;
}

.expired-main-title {
  font-size: 32px;
  font-weight: 700;
  color: #b02a2a;
  margin-bottom: 30px;
}

.expiry-date-box {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
  border-radius: 16px;
  padding: 25px;
  margin: 30px auto;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(176, 42, 42, 0.1);
  animation: scaleIn 0.5s ease;
}

.expiry-date-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b02a2a;
  margin-bottom: 12px;
  font-weight: 600;
}

.expiry-date-value {
  font-size: 26px;
  font-weight: 700;
  color: #b02a2a;
}

.expired-message-text {
  max-width: 550px;
  margin: 30px auto;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================
   ACTION BUTTONS
========================================= */

.action-buttons {
  margin-top: 40px;
}

.back-button {
  display: inline-block;
  padding: 12px 32px;
  background: #8a5d14;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(138, 93, 20, 0.2);
}

.back-button:hover {
  background: #6e480f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 93, 20, 0.3);
}

.home-button {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.1);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 152, 0, 0.3);
  }
}

/* =========================================
   MOBILE RESPONSIVE - ENHANCED
========================================= */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
  .verify-card-modern {
    max-width: 90%;
    padding: 45px;
  }
  
  .doc-name {
    font-size: 32px;
  }
  
  .detail-item strong {
    font-size: 17px;
  }
}

/* Mobile Devices (481px - 768px) */
@media (max-width: 768px) {
  .verify-wrapper {
    padding: 40px 20px;
    min-height: calc(100vh - 100px);
  }
  
  .verify-card-modern {
    padding: 40px 25px;
    max-width: 95%;
    border-radius: 20px;
  }
  
  .verify-status {
    font-size: 14px;
    padding: 12px 28px;
    margin-bottom: 35px;
  }
  
  .verify-status.invalid {
    font-size: 14px;
    padding: 12px 28px;
  }
  
  .status-dot {
    width: 12px;
    height: 12px;
    margin-right: 12px;
  }
  
  .doc-name {
    font-size: 32px;
    margin-bottom: 35px;
    text-align: center;
    line-height: 1.3;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .detail-item {
    text-align: center;
    padding: 18px 15px;
    background: #f8f9fa;
    border-radius: 12px;
  }
  
  .detail-item span {
    font-size: 13px;
    margin-bottom: 8px;
    letter-spacing: 1px;
  }
  
  .detail-item strong {
    font-size: 18px;
    font-weight: 700;
    word-break: break-word;
  }
  
  .expiry-warning,
  .expiry-info {
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
    gap: 12px;
    border-radius: 16px;
    margin-bottom: 35px;
  }
  
  .expiry-warning-icon,
  .expiry-info-icon {
    font-size: 42px;
  }
  
  .expiry-warning-content strong,
  .expiry-info-content strong {
    font-size: 14px;
    letter-spacing: 1px;
  }
  
  .expiry-warning-content p,
  .expiry-info-content p {
    font-size: 16px;
    margin-top: 5px;
  }
  
  .highlight {
    font-size: 20px;
    font-weight: 800;
  }
  
  .not-found-icon-wrapper {
    margin-bottom: 35px;
  }
  
  .not-found-icon {
    font-size: 100px;
  }
  
  .not-found-title {
    font-size: 32px;
    margin-bottom: 25px;
  }
  
  .not-found-title:after {
    bottom: -15px;
    width: 80px;
    height: 4px;
  }
  
  .not-found-message {
    font-size: 18px;
    line-height: 1.6;
    padding: 0 20px;
    margin: 35px auto;
    max-width: 450px;
  }
  
  .expired-icon-wrapper {
    margin-bottom: 35px;
  }
  
  .expired-icon {
    font-size: 100px;
  }
  
  .expired-main-title {
    font-size: 32px;
    margin-bottom: 35px;
  }
  
  .expiry-date-box {
    padding: 28px 20px;
    margin: 30px auto;
    max-width: 320px;
    border-radius: 20px;
  }
  
  .expiry-date-label {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
  }
  
  .expiry-date-value {
    font-size: 28px;
    font-weight: 800;
  }
  
  .expired-message-text {
    font-size: 18px;
    line-height: 1.6;
    padding: 0 20px;
    margin: 35px auto;
    max-width: 450px;
  }
  
  .action-buttons {
    margin-top: 45px;
  }
  
  .back-button,
  .home-button {
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 60px;
    min-width: 220px;
  }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  .verify-wrapper {
    padding: 30px 15px;
  }
  
  .verify-card-modern {
    padding: 35px 20px;
    border-radius: 18px;
  }
  
  .verify-status,
  .verify-status.invalid {
    font-size: 13px;
    padding: 10px 24px;
    margin-bottom: 30px;
  }
  
  .doc-name {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .detail-item {
    padding: 16px 12px;
  }
  
  .detail-item span {
    font-size: 12px;
  }
  
  .detail-item strong {
    font-size: 17px;
  }
  
  .not-found-icon,
  .expired-icon {
    font-size: 85px;
  }
  
  .not-found-title,
  .expired-main-title {
    font-size: 28px;
  }
  
  .not-found-message,
  .expired-message-text {
    font-size: 16px;
    line-height: 1.5;
    padding: 0 15px;
  }
  
  .expiry-date-box {
    padding: 22px 16px;
    max-width: 280px;
  }
  
  .expiry-date-value {
    font-size: 24px;
  }
  
  .back-button,
  .home-button {
    padding: 14px 32px;
    font-size: 16px;
    min-width: 200px;
  }
}

/* Extra Small Devices (below 320px) */
@media (max-width: 320px) {
  .verify-card-modern {
    padding: 30px 15px;
  }
  
  .doc-name {
    font-size: 24px;
  }
  
  .detail-item strong {
    font-size: 16px;
  }
  
  .not-found-title,
  .expired-main-title {
    font-size: 24px;
  }
  
  .not-found-message,
  .expired-message-text {
    font-size: 15px;
  }
  
  .expiry-date-value {
    font-size: 22px;
  }
  
  .back-button,
  .home-button {
    padding: 12px 28px;
    font-size: 15px;
  }
}

/* Landscape Mode on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .verify-wrapper {
    padding: 30px 20px;
  }
  
  .verify-card-modern {
    padding: 30px 25px;
  }
  
  .details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .detail-item {
    padding: 12px;
  }
  
  .doc-name {
    font-size: 26px;
    margin-bottom: 25px;
  }
}

/* Touch-Friendly Improvements */
@media (hover: none) and (pointer: coarse) {
  .back-button,
  .home-button {
    padding: 16px 36px;
    margin-top: 10px;
  }
  
  .detail-item {
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .detail-item:active {
    background: #e9ecef;
    transform: scale(0.98);
  }
}
/* =========================================
   PHONE NUMBER STYLES
========================================= */

.phone-item {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .phone-item {
        grid-column: span 1;
    }
}

.phone-link {
    color: #1e6f43;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.phone-link:hover {
    color: #155a36;
    text-decoration: underline;
    transform: scale(1.02);
}

.phone-link:before {
    content: "📞";
    font-size: 14px;
}

/* Mobile touch-friendly phone link */
@media (max-width: 768px) {
    .phone-link {
        background: #e9f5ef;
        padding: 8px 16px;
        border-radius: 50px;
        display: inline-block;
        margin-top: 5px;
    }
    
    .phone-link:hover {
        background: #d4edda;
    }
}

/* =========================================
   CONTACT SECTION STYLES
========================================= */

.contact-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    margin: 30px auto;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.contact-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-details p {
    margin: 12px 0;
    font-size: 15px;
}

.contact-details a {
    color: #1e6f43;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #155a36;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 20px;
        margin: 25px 15px;
    }
    
    .contact-title {
        font-size: 18px;
    }
    
    .contact-details p {
        font-size: 14px;
        word-break: break-word;
    }
}