/* assets/css/atgmodal.css */
/* Premium dark SaaS modal styles - responsive & accessible */

:root {
  --bg: #071026;
  --panel: #0b1220;
  --muted: #94a3b8;
  --accent-1: #06d6a0;
  --accent-2: #3b82f6;
  --glass: rgba(255,255,255,0.02);
  --radius: 14px;
  --z: 99999;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Modal container (full screen) */
.atg-booking-modal-sdl {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z);
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2,6,23,0.78), rgba(2,6,23,0.82));
  backdrop-filter: blur(8px);
}

/* toggled class */
.atg-booking-modal-sdl.open {
  display: flex;
}

/* panel */
.atg-modal-panel-sdl {
  width: 92%;
  max-width: 1100px;
  height: 82%;
  background: linear-gradient(180deg, rgba(11,17,32,0.96), rgba(7,12,24,0.98));
  border-radius: var(--radius);
  box-shadow: 0 40px 80px rgba(2,6,23,0.7), 0 1px 0 rgba(255,255,255,0.02) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--glass);
}

/* header */
.atg-modal-header-sdl{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
  gap:12px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  background: linear-gradient(90deg, rgba(59,130,246,0.03), rgba(6,214,160,0.02));
}
.atg-modal-brand-sdl { display:flex; align-items:center; gap:12px; }
.atg-modal-logo-sdl { width:44px; height:44px; object-fit:contain; border-radius:8px; display:block; }
.atg-modal-title-wrap-sdl { display:flex; flex-direction:column; }
.atg-modal-title-sdl { margin:0; font-size:1.05rem; color:#e6eef9; font-weight:700; letter-spacing:0.2px; }


/* Gradient Title */
.atg-gradient-text-sdl {
  background: linear-gradient(90deg, #06d6a0, #3b82f6, #a855f7, #f59e0b);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: gradient-flow-sdl 6s ease infinite;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.25), 0 0 28px rgba(6, 214, 160, 0.25);
}

@keyframes gradient-flow-sdl {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Full-width underline */
.atg-title-underline-sdl {
  display: block;
  width: 100%; /* always matches title width */
  height: 4px;
  margin: 6px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #06d6a0, #3b82f6, #a855f7, #f59e0b);
  background-size: 200% 200%;
  animation: underline-glow-sdl 4s ease infinite;
  box-shadow: 0 0 12px rgba(6, 214, 160, 0.6),
              0 0 20px rgba(59, 130, 246, 0.4),
              0 0 28px rgba(168, 85, 247, 0.3);
  transition: transform 0.3s ease;
}

/* Hover effect — expand underline */
.atg-modal-title-sdl:hover .atg-title-underline-sdl {
  transform: scaleX(1.05); /* slightly expand */
}

@keyframes underline-glow-sdl {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Subheading with emphasis */
.atg-modal-sub-sdl {
  margin: 4px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}

/*.atg-sub-highlight-sdl {*/
/*  color: #e2e8f0;*/
/*  font-weight: 600;*/
/*}*/



/* Secure your spot - premium gradient + underline */
.atg-sub-highlight-sdl {
  background: linear-gradient(90deg, #06d6a0, #3b82f6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  position: relative;
}
.atg-sub-highlight-sdl::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #06d6a0, #3b82f6, #a855f7);
  /*border-radius: 2px;*/
  box-shadow: 0 0 8px rgba(59,130,246,0.4);
}

/* Dash separator - thick, modern, gradient, glowing */
.atg-dash-sdl {
  display: inline-block;
  margin: 0 8px;
  font-weight: 900;
  font-size: 1.2em; /* slightly larger than text */
  background: linear-gradient(90deg, #06d6a0, #3b82f6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 6px rgba(59,130,246,0.5), 0 0 8px rgba(6,214,160,0.4);
  vertical-align: middle;
  transform: translateY(-1px); /* perfectly center with text */
}


/* powered by our - futuristic metallic shimmer */
.atg-powered-sdl {
  background: linear-gradient(90deg, #94a3b8, #f1f5f9, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 600;
  position: relative;
  animation: shimmer-sdl 4s infinite linear;
  background-size: 200% auto;
}
@keyframes shimmer-sdl {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* booking system - brand pop */
/*.atg-brand-sdl {*/
/*  color: #06d6a0;*/
/*  font-weight: 700;*/
/*}*/

/* booking system - brand pop */
.atg-brand-sdl {
  background: linear-gradient(90deg, #3b82f6, #06d6a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}


/* Close X button - premium hover & animation */
.atg-modal-close-sdl {
  width:44px; 
  height:44px; 
  border-radius:10px;
  display:grid; 
  place-items:center;
  border:none; 
  cursor:pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  color:#f8fafc; 
  font-size:1.15rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.atg-modal-close-sdl:hover {
  transform: rotate(90deg) scale(1.1);
  color: #ff6b6b;
  box-shadow: 0 6px 20px rgba(255,107,107,0.35), 0 0 12px rgba(255,107,107,0.2) inset;
}



/* body - iframe */
.atg-modal-body-sdl { flex:1; padding:0; display:flex; align-items:stretch; }
.atg-iframe-wrapper-sdl { flex:1; position:relative; height:100%; }
.atg-booking-iframe-sdl {
  width:100%;
  height:100%;
  border:0;
  display:block;
  background: #020617;
}

/* loader overlay shown while iframe loads */
.atg-iframe-loader-sdl {
  position:absolute; inset:0; z-index:10;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(180deg, rgba(2,6,23,0.45), rgba(2,6,23,0.45));
  transition: opacity .25s ease;
}
.atg-iframe-loader-sdl.hidden { opacity:0; pointer-events:none; }

.atg-spinner-sdl{
  width:54px; height:54px; border-radius:50%;
  border:4px solid rgba(255,255,255,0.06);
  border-top-color: var(--accent-2);
  animation: atg-spin-sdl 0.9s linear infinite;
  box-shadow: 0 6px 24px rgba(59,130,246,0.07);
}
@keyframes atg-spin-sdl { to { transform: rotate(360deg);} }


/* Footer container */
.atg-modal-footer-sdl {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    justify-content: space-between; /* left-right alignment */
    align-items: center;
    background: linear-gradient(90deg, rgba(11,17,32,0.96), rgba(7,12,24,0.98));
}

/* Copyright text */
.atg-footer-content small.atg-copyright-sdl {
    color: #718096; /* muted gray */
    font-size: 0.88rem;
    font-weight: 400;
}

/* Modal note (Need help?) */
.atg-modal-note-sdl {
    color: #94a3b8; /* muted light text */
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.3s;
}

/* Contact link */
.atg-contact-link-sdl {
    background: linear-gradient(90deg, #06d6a0, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s, text-shadow 0.25s;
}
.atg-contact-link-sdl:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(59,130,246,0.5);
}

/* Responsive tweaks */
@media (max-width: 520px) {
    .atg-modal-footer-sdl {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}



 /* Wrapper: show/hide modal */
.atg-close-confirm-sdl {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z) + 5);
  display: flex; /* <-- change from none to flex */
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0; /* hidden initially */
  transition: opacity 0.3s ease;
}

.atg-close-confirm-sdl.show {
  display:flex;
  pointer-events: auto;
  opacity: 1; /* fade in overlay */
}

 /*Show animation */
.atg-close-confirm-sdl.show .atg-close-confirm-card-sdl {
  transform: scale(1);
  opacity: 1;
}


 /* Close confirmation card */
.atg-close-confirm-card-sdl {
  width: 92%;
  max-width: 420px;
  padding: 20px;
  background: linear-gradient(180deg, #071026, #0a1220);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.7), 0 0 15px rgba(11,17,32,0.5) inset;
  border: 1px solid rgba(255,255,255,0.03);
  text-align:center;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

 /*Show animation */
.atg-close-confirm-card-sdl {
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}


 /* Card heading & text */
.atg-close-confirm-card-sdl h4 {
  margin:0 0 8px; 
  color:#f1f5f9; 
  font-size:1.18rem; 
  font-weight:700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.atg-close-confirm-card-sdl p { 
  color:var(--muted); 
  margin:0 0 20px; 
  font-size:0.95rem;
  line-height:1.5;
}


/* Confirm buttons - modern look */
.atg-close-confirm-actions-sdl { 
  display:flex; 
  gap:16px; 
  justify-content:center; 
}

.atg-close-confirm-actions-sdl button {
  padding:12px 18px; 
  border-radius:12px; 
  border: none; 
  cursor:pointer; 
  font-weight:600;
  font-size:0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* No button */
.atg-cf-no-sdl { 
  background: transparent; 
  color: var(--muted); 
  border: 1px solid rgba(255,255,255,0.05);
}
.atg-cf-no-sdl:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 4px 15px rgba(255,255,255,0.06);
}

/* Yes button */
.atg-cf-yes-sdl { 
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); 
  color:#04101a; 
}
.atg-cf-yes-sdl:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(6,214,160,0.45), 0 0 12px rgba(59,130,246,0.35);
}

/* Small screen tweaks remain unchanged */
@media (max-width:820px) {
  .atg-modal-panel-sdl { height:94%; width:96%; max-width: 720px; border-radius:12px; }
  .atg-modal-title-sdl { font-size:0.98rem; }
  .atg-iframe-loader-sdl { backdrop-filter: blur(2px); }
}
@media (max-width:420px) {
  .atg-modal-close-sdl { width:40px; height:40px; font-size:1rem; }
  .atg-modal-logo-sdl { display:none; }
  .atg-close-confirm-card-sdl { padding:14px; }
}
