/* ============================================
   SMM CLINIC - Klinik Utama Sentra Maritim Medika
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --color-white: #ffffff;
  --color-light-blue: #69D9F5;
  --color-light-green: #4FD1A6;
  --color-dark-blue: #1a5276;
  --color-navy: #1a2332;

  --gradient-primary: linear-gradient(to left, var(--color-light-blue), var(--color-light-green));
  --gradient-hero: linear-gradient(135deg, rgba(26, 82, 118, 0.7), rgba(79, 209, 166, 0.4));
  
  --text-dark: #333333;
  --text-medium: #555555;
  
  --shadow-card: 0 15px 40px rgba(105, 217, 245, 0.15);
  --shadow-btn: 0 8px 25px rgba(79, 209, 166, 0.3);
  --transition-fast: 0.3s ease;
  --font-family: 'Poppins', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Default cursor (previously interactive anchor) */
body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--color-transparent);
  overflow-x: hidden;
}

a, button, .service-card, .flip-card {
  cursor: pointer;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  left: 40px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 80px; z-index: 1000;
  display: flex; align-items: center; background: transparent; transition: 0.3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 45px; }
.nav-logo span { font-weight: 700; font-size: 1.2rem; color: var(--color-dark-blue); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 0.95rem; position: relative; padding: 5px 0;}
.nav-links a::after { content:''; position:absolute; bottom:0; left:0; width:0; height:2px; background:var(--color-light-green); transition:0.3s;}
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.btn-login {
  padding: 10px 25px; background: var(--gradient-primary); color: white; border-radius: 30px; font-weight: 600; box-shadow: var(--shadow-btn); transition: 0.3s;
}
.btn-login:hover { transform: scale(1.05); }

/* HERO */
.hero-section { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s; }
.hero-slide.active { opacity: 1; }
.hero-overlay { background: var(--gradient-hero); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; color: white; padding: 0 20px; max-width: 900px;}
.hero-logo-badge img { height: 80px; margin: 0 auto 20px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));}
.hero-content h1 { font-size: 3rem; font-weight: 700; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.subtitle { font-size: 1.3rem; margin-bottom: 10px; }
.tagline { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px;}
.btn-hero-primary { padding: 15px 35px; background: white; color: var(--color-dark-blue); font-weight: 700; border-radius: 50px; display: inline-block; transition: 0.3s; }
.btn-hero-primary:hover { transform: scale(1.05); }
.wave-divider { position: absolute; bottom: 0; width: 100%; z-index: 3; line-height: 0;}
.wave-divider svg { width: 100%; height: 80px; display: block; }

/* SECTIONS */
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: 2.5rem; color: var(--color-dark-blue); margin-bottom: 15px;}
.title-underline { width: 80px; height: 4px; background: var(--gradient-primary); margin: 0 auto; border-radius: 2px;}

.section-about { padding: 100px 0; background: #ffffff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start;}
.about-image img { border-radius: 20px; box-shadow: var(--shadow-card); }
.about-text h2 { font-size: 2rem; color: var(--color-dark-blue); margin-bottom: 20px; }
.checklist li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; border-bottom: 1px solid #eee; padding-bottom: 10px;}

.section-profile { padding: 100px 0; background: linear-gradient(180deg, #f8fcff, #ffffff); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;}
.tagline-badge { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; background: var(--gradient-primary); color: white; border-radius: 50px; font-weight: 600; font-size: 1.2rem; margin-top: 20px; box-shadow: var(--shadow-btn);}
.stats-row { display: flex; gap: 30px; margin-top: 40px; }
.stat-item { text-align: center; padding: 20px; background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); flex: 1;}
.stat-item .counter { font-size: 2.5rem; font-weight: 700; color: var(--color-light-blue); }
.stat-item .stat-suffix { font-size: 2rem; font-weight: 700; color: var(--color-light-green); }

/* LAYANAN FLIP CARDS */
.section-services { padding: 100px 0; background: #ffffff; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.flip-card { background-color: transparent; height: 300px; perspective: 1000px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: var(--shadow-card); }
.flip-card-front { background: white; border: 2px solid #eef5fa; }
.flip-card-front .icon { font-size: 3rem; margin-bottom: 20px; }
.flip-card-front h3 { color: var(--color-dark-blue); font-size: 1.2rem;}
.flip-card-back { background: var(--gradient-primary); color: white; transform: rotateY(180deg); }
.flip-card-back h3 { margin-bottom: 15px; font-size: 1.2rem; }
.flip-card-back p { font-size: 0.95rem; line-height: 1.5; }

/* HUBUNGI KAMI */
.section-contact { padding: 25px 0; background: #f8fcff; }
.section-contact .section-header { margin-bottom: 15px; }
.map-container iframe { border-radius: 15px; box-shadow: var(--shadow-card); height: 100%; width: 100%; min-height: 200px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: stretch; }
.info-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; margin-bottom: 10px; background: white; padding: 12px; border-radius: 15px; box-shadow: var(--shadow-card); }
.info-card .icon-box { font-size: 1.5rem; }
.info-card h4 { color: var(--color-dark-blue); margin-bottom: 0; font-size: 1rem; }
.info-card p { font-size: 0.85rem; margin: 0; line-height: 1.3; }
.contact-form { background: white; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-card); }
.contact-form h3 { margin-bottom: 20px; color: var(--color-dark-blue); font-size: 1.5rem;}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 10px; font-family: inherit; }
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit { width: 100%; padding: 15px; background: var(--gradient-primary); color: white; border: none; border-radius: 10px; font-weight: 600; font-size: 1.1rem; box-shadow: var(--shadow-btn); transition: 0.3s; }
.btn-submit:hover { transform: translateY(-3px); }

/* BOOKING LAYANAN */
.section-cta { padding: 100px 0; background: var(--gradient-primary); text-align: center; color: white; }
.section-cta h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-cta p { font-size: 1.2rem; margin-bottom: 30px; }
.btn-cta { display: inline-block; padding: 15px 40px; background: white; color: var(--color-dark-blue); font-weight: 700; font-size: 1.2rem; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: 0.3s;}
.btn-cta:hover { transform: scale(1.05); }

/* FOOTER */
.footer { background: var(--color-navy); color: rgba(255,255,255,0.7); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 50px;}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px;}
.footer-logo img { height: 40px; filter: brightness(0) invert(1); }
.footer-logo span { color: white; font-size: 1.5rem; font-weight: 700; }
.footer-col h3 { color: white; margin-bottom: 20px; font-size: 1.2rem;}
.footer-col ul li { margin-bottom: 15px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px;}

/* LOGIN TABS */
.login-tabs { display: flex; margin-bottom: 30px; border-bottom: 2px solid #eee; }
.login-tab { flex: 1; padding: 15px 0; text-align: center; font-weight: 600; color: #999; border-bottom: 3px solid transparent; transition: 0.3s; }
.login-tab.active { color: var(--color-light-blue); border-bottom-color: var(--color-light-green); }
.login-form-container { display: none; }
.login-form-container.active { display: block; animation: fadeIn 0.5s; }
.terms-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; margin-bottom: 20px;}
.terms-checkbox input { margin-top: 4px; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }
.animate-on-scroll[data-animation='slideInLeft'].animated { animation: slideInLeft 0.8s forwards; }
.animate-on-scroll[data-animation='slideInRight'].animated { animation: slideInRight 0.8s forwards; }

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--gradient-primary); color: white; border: none; border-radius: 50%; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 1000; box-shadow: var(--shadow-btn);}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; } /* Add hamburger menu logic if needed */
}
@media (max-width: 576px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
}

/* ========================================================================= */
/* BOOKING FEATURE STYLES (PORTAL)                                           */
/* ========================================================================= */

.booking-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.progress-step {
    flex: 1;
    text-align: center;
    color: #999;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.progress-step.active {
    color: var(--color-light-blue);
}

.progress-step.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background: var(--color-light-green);
    border-radius: 2px;
}

.booking-step {
    animation: fadeIn 0.5s ease;
}

.booking-select, .booking-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.booking-select:focus, .booking-input:focus {
    border-color: var(--color-light-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(105, 217, 245, 0.2);
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slot-btn {
    padding: 10px 15px;
    background: #f8fcff;
    border: 1px solid var(--color-light-blue);
    border-radius: 8px;
    color: var(--color-dark-blue);
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.time-slot-btn:hover:not(:disabled) {
    background: var(--color-light-blue);
    color: white;
}

.time-slot-btn.selected {
    background: var(--color-light-green);
    border-color: var(--color-light-green);
    color: white;
}

.time-slot-btn:disabled {
    background: #eee;
    border-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

.booking-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-secondary {
    padding: 12px 25px;
    background: #f0f0f0;
    color: #555;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-secondary:hover { background: #e4e4e4; }

.btn-primary, .btn-submit-booking {
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: 0.3s;
}
.btn-primary:hover, .btn-submit-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 209, 166, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* TENTANG KAMI DETAIL */
.medis-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(105,217,245,0.2) !important; border-color: var(--color-light-blue); }
