/* patient css - Mobile Optimized */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4a90e2;
    --soft-pink: #f8e8f5;
    --accent-purple: #9b59b6;
    --neutral-white: #ffffff;
    --soft-gray: #f7f9fc;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-soft: linear-gradient(135deg, #ffeef8 0%, #f0f9ff 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
}


/* Header */

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--accent-purple);
    font-weight: 500;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    font-weight: 500;
    color: var(--dark-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

nav a:hover::before {
    left: 0;
}

nav a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}


/* Hero Section */

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(74, 144, 226, 0.85) 0%, rgba(155, 89, 182, 0.75) 100%), url('clinic1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="10" r="0.8" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 10s ease-in-out infinite;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-text {
    animation: slideInUp 1s ease-out;
    max-width: 800px;
}

.hero-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 0 8px 30px rgba(255, 255, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

.hero-text p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    color: white;
    padding: 1.5rem 4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Services Section */

.services {
    padding: 6rem 3rem;
    background: var(--soft-gray);
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 1rem;
}


/* HMO Section */

.hmo-section {
    padding: 6rem 3rem;
    background: white;
    position: relative;
}

.hmo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hmo-card {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(74, 144, 226, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.hmo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.hmo-card:hover::before {
    transform: translateX(0);
}

.hmo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    border-color: var(--primary-blue);
}

.hmo-logo {
    width: 100%;
    max-width: 140px;
    height: 105px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.hmo-card:hover .hmo-logo {
    transform: scale(1.1);
}

.hmo-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
}


/* Appointment Section */

.appointment-section {
    padding: 6rem 3rem;
    background: var(--gradient-primary);
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.appointment-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}


/* Reservation Notice */

.reservation-notice {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #f39c12;
}

.reservation-notice h3 {
    color: #e67e22;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.notice-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--dark-text);
}

.fee-details {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border: 2px solid rgba(74, 144, 226, 0.2);
}

.fee-details p {
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.important-terms {
    background: rgba(243, 156, 18, 0.1);
    border: 2px solid rgba(243, 156, 18, 0.3);
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 15px;
}

.important-terms h4 {
    color: #d68910;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.important-terms ul {
    list-style: none;
    padding: 0;
}

.important-terms li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    color: var(--dark-text);
}

.important-terms li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}


/* Form Container */

.form-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    padding: 3.5rem;
    border-radius: 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    color: var(--dark-text);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--dark-text);
    position: relative;
}

.form-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark-text);
    font-size: 1rem;
}

input,
select {
    padding: 1.2rem 1.5rem;
    border: 2px solid #e8ecf4;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.8rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.radio-option:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: var(--primary-blue);
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.radio-option label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}


/* Payment Sections */

.payment-section {
    margin-top: 2.5rem;
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px solid rgba(74, 144, 226, 0.1);
}

.payment-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.reservation-reminder {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(39, 174, 96, 0.1) 100%);
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.reservation-reminder p {
    margin: 0;
    color: #27ae60;
    font-weight: 600;
}


/* GCash Payment Section */

.gcash-payment-section {
    margin-top: 2rem;
}

.gcash-info {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 153, 204, 0.3);
}

.gcash-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.gcash-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.qr-code-large {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 15px;
    background: white;
    padding: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.payment-details p {
    margin: 0.5rem 0;
    line-height: 1.5;
    font-size: 1.1rem;
}

.gcash-number,
.account-name,
.amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff200;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem !important;
}

.amount {
    font-size: 1.6rem;
    color: #00ff88;
}

.payment-instructions {
    background: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.payment-instructions p {
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.payment-instructions ol {
    padding-left: 1.5rem;
}

.payment-instructions li {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 500;
}


/* Submit Button */

.submit-button {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 2.5rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #8e44ad 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.submit-button:hover::before {
    left: 0;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}


/* Gallery Section */

.gallery {
    padding: 6rem 3rem;
    background: white;
    position: relative;
}

.slideshow-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 144, 226, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.slideshow-arrow.left {
    left: 25px;
}

.slideshow-arrow.right {
    right: 25px;
}

.slideshow-arrow:hover {
    background: var(--accent-purple);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(155, 89, 182, 0.5);
}

.slideshow-dots {
    text-align: center;
    padding: 2rem 0;
    background: white;
}

.slideshow-dot {
    height: 15px;
    width: 15px;
    margin: 0 8px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot.active,
.slideshow-dot:hover {
    background: var(--primary-blue);
    transform: scale(1.3);
}


/* Footer */

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 3rem 2rem;
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: #bdc3c7;
    line-height: 1.6;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #34495e;
    color: #95a5a6;
    font-size: 1rem;
}


/* Success Modal */

.success-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.4s ease-out;
}

.success-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.success-content {
    background: linear-gradient(135deg, #00d4ff 0%, var(--primary-blue) 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 550px;
    width: 100%;
    position: relative;
    animation: modalSlideUp 0.5s ease-out;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 2rem;
    animation: iconPop 0.7s ease-in-out 0.4s both;
}

.success-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.success-message {
    margin-bottom: 2.5rem;
}

.thank-you {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #fff200;
}

.confirmation-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.processing-note {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
    line-height: 1.6;
}

.close-modal {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}


/* Animations */

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPop {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}


/* ============================================
   MOBILE RESPONSIVE OPTIMIZATIONS
   ============================================ */


/* Large Tablets and below */

@media (max-width: 1200px) {
    .hero-text h2 {
        font-size: 3.5rem;
    }
    .hero-background {
        background-attachment: scroll;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}


/* Tablets */

@media (max-width: 992px) {
    .header-container {
        padding: 1rem 2rem;
    }
    nav {
        gap: 0.8rem;
    }
    nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    .hero-text h2 {
        font-size: 3rem;
    }
    .services-grid,
    .hmo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}


/* Mobile Landscape and Portrait Tablets */

@media (max-width: 768px) {
    /* Header adjustments */
    .header-container {
        padding: 0.8rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    .logo img {
        width: 45px;
        height: 45px;
    }
    .logo-text h1 {
        font-size: 1.2rem;
    }
    .logo-text span {
        font-size: 0.7rem;
    }
    nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem;
    }
    nav a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    /* Hero Section */
    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 80vh;
    }
    .hero-text h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .cta-button {
        padding: 1.2rem 3rem;
        font-size: 1rem;
    }
    /* Services Section */
    .services,
    .hmo-section,
    .appointment-section,
    .gallery {
        padding: 4rem 1.5rem;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
    .section-title p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-card {
        padding: 2rem;
    }
    /* HMO Grid */
    .hmo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    .hmo-card {
        height: 180px;
        padding: 1.2rem;
    }
    .hmo-logo {
        max-width: 120px;
        height: 90px;
    }
    /* Appointment Form - MOBILE OPTIMIZED */
    .appointment-container {
        padding: 0;
        width: 100%;
    }
    .appointment-section {
        padding: 3rem 1rem;
        overflow-x: hidden;
    }
    /* Reduce excessive height/spacing in appointment section */
    .section-title {
        margin-bottom: 2rem;
    }
    .reservation-notice {
        padding: 1.5rem;
        margin-bottom: 2rem;
        border-radius: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    .reservation-notice h3 {
        font-size: 1.1rem;
    }
    .fee-details {
        padding: 1.2rem;
    }
    .important-terms {
        padding: 1.5rem;
    }
    .important-terms h4 {
        font-size: 1.1rem;
    }
    .important-terms li {
        font-size: 0.9rem;
        padding-left: 1.8rem;
    }
    /* Form Container - CRITICAL MOBILE FIXES */
    .form-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .form-container h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }
    .form-container h2::after {
        bottom: -8px;
        width: 50px;
        height: 3px;
    }
    /* Single column on mobile */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .form-group {
        margin-bottom: 0;
        width: 100%;
    }
    label {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
        display: block;
    }
    input,
    select {
        padding: 1rem 1.2rem;
        font-size: 1rem;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        /* Prevent zoom on iOS */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    /* Fix for date inputs on mobile */
    input[type="date"] {
        min-height: 48px;
        display: block;
        width: 100%;
    }
    /* Fix for select dropdowns on mobile */
    select {
        min-height: 48px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a90e2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 12px;
        padding-right: 3rem;
        width: 100%;
    }
    /* Radio buttons stack vertically on mobile */
    .radio-group {
        flex-direction: column;
        gap: 1rem;
        margin-top: 0.6rem;
    }
    .radio-option {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
    }
    .radio-option input[type="radio"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        flex-shrink: 0;
    }
    .radio-option label {
        font-size: 1rem;
        flex: 1;
    }
    /* Payment Sections */
    .payment-section {
        padding: 1.5rem;
        margin-top: 2rem;
        border-radius: 15px;
    }
    .payment-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    .reservation-reminder {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    .reservation-reminder p {
        font-size: 0.95rem;
    }
    /* GCash Payment Section - Mobile Optimized */
    .gcash-info {
        padding: 1.5rem;
        border-radius: 15px;
    }
    .gcash-info h4 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    /* Stack QR and details vertically */
    .gcash-details {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .qr-code-large {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }
    .payment-details p {
        font-size: 1rem;
    }
    .gcash-number,
    .account-name {
        font-size: 1.2rem;
    }
    .amount {
        font-size: 1.4rem;
    }
    .payment-instructions {
        padding: 1.5rem;
        border-radius: 12px;
    }
    .payment-instructions p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .payment-instructions ol {
        padding-left: 1.2rem;
    }
    .payment-instructions li {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    /* File input styling for mobile */
    input[type="file"] {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    /* Submit Button */
    .submit-button {
        padding: 1.3rem 2rem;
        font-size: 1.1rem;
        margin-top: 2rem;
    }
    /* Gallery */
    .slide img {
        height: 350px;
    }
    .slideshow-arrow {
        width: 45px;
        height: 45px;
    }
    .slideshow-arrow.left {
        left: 15px;
    }
    .slideshow-arrow.right {
        right: 15px;
    }
    /* Success Modal */
    .success-content {
        padding: 2.5rem 2rem;
        margin: 1rem;
        border-radius: 20px;
        max-width: 90%;
    }
    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    .success-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .thank-you {
        font-size: 1.2rem;
    }
    .confirmation-text {
        font-size: 1rem;
    }
    .processing-note {
        font-size: 0.9rem;
    }
    .close-modal {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-section {
        text-align: center;
    }
}


/* Small Mobile Devices */

@media (max-width: 480px) {
    /* Header */
    .logo img {
        width: 40px;
        height: 40px;
    }
    .logo-text h1 {
        font-size: 1.1rem;
    }
    .logo-text span {
        font-size: 0.65rem;
    }
    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    /* Hero */
    .hero {
        padding: 5rem 1rem 2rem;
    }
    .hero-text h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 0.95rem;
    }
    /* Sections */
    .services,
    .hmo-section,
    .appointment-section,
    .gallery {
        padding: 3rem 1rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .section-title p {
        font-size: 0.95rem;
    }
    .service-card {
        padding: 1.5rem;
    }
    .service-card h3 {
        font-size: 1.2rem;
    }
    .service-card p {
        font-size: 0.95rem;
    }
    /* HMO */
    .hmo-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .hmo-card {
        height: 160px;
    }
    /* Appointment Form */
    .reservation-notice {
        padding: 1.2rem;
    }
    .reservation-notice h3 {
        font-size: 1rem;
    }
    .notice-content p {
        font-size: 0.9rem;
    }
    .fee-details,
    .important-terms {
        padding: 1rem;
    }
    .important-terms li {
        font-size: 0.85rem;
    }
    .form-container {
        padding: 1.5rem 1rem;
    }
    .form-container h2 {
        font-size: 1.4rem;
    }
    input,
    select {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    .radio-option {
        padding: 0.8rem;
    }
    .radio-option label {
        font-size: 0.9rem;
    }
    .payment-section {
        padding: 1.2rem;
    }
    .payment-section h3 {
        font-size: 1.2rem;
    }
    .gcash-info {
        padding: 1.2rem;
    }
    .gcash-info h4 {
        font-size: 1.1rem;
    }
    .gcash-details {
        padding: 1.2rem;
        gap: 1.2rem;
    }
    .qr-code-large {
        width: 140px;
        height: 140px;
    }
    .gcash-number,
    .account-name {
        font-size: 1.1rem;
    }
    .amount {
        font-size: 1.3rem;
    }
    .payment-instructions {
        padding: 1.2rem;
    }
    .payment-instructions p {
        font-size: 0.95rem;
    }
    .payment-instructions li {
        font-size: 0.9rem;
    }
    .submit-button {
        padding: 1.2rem 1.8rem;
        font-size: 1rem;
    }
    /* Gallery */
    .slide img {
        height: 250px;
    }
    .slideshow-arrow {
        width: 40px;
        height: 40px;
    }
    .slideshow-arrow.left {
        left: 10px;
    }
    .slideshow-arrow.right {
        right: 10px;
    }
    .slideshow-dot {
        height: 12px;
        width: 12px;
        margin: 0 5px;
    }
    /* Success Modal */
    .success-content {
        padding: 2rem 1.5rem;
    }
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .success-content h2 {
        font-size: 1.3rem;
    }
    .thank-you {
        font-size: 1.1rem;
    }
    .confirmation-text {
        font-size: 0.95rem;
    }
    .processing-note {
        font-size: 0.85rem;
    }
    .close-modal {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}


/* Extra Small Devices */

@media (max-width: 360px) {
    .hero-text h2 {
        font-size: 1.7rem;
    }
    .section-title h2 {
        font-size: 1.6rem;
    }
    .form-container {
        padding: 1.2rem 0.8rem;
    }
    input,
    select {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    .qr-code-large {
        width: 120px;
        height: 120px;
    }
}