﻿/* -----------------------------------------------
   Daubigny Clinic - Payment Page Stylesheet
   Matches website header styles from daubigny.ca
----------------------------------------------- */

:root {
    --primary: #028FD0;
    --primary-dark: #004b6e;
    --primary-light: #00A3DA;
    --text-dark: #1a2c3e;
    --text-light: #4b4b4b;
    --gray-bg: #f5f5f5;
    --gray-light: #e7e7e7;
    --white: #ffffff;
    --black: #000000;
    --footer-bg: #e7e7e7;
    --footer-text: #4b4b4b;
    --border-radius: 4px;
    --font-body: 'Inter', 'Open Sans', Arial, sans-serif;
    --font-headings: 'Inter', 'Montserrat', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--gray-bg);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.4;
}

/* ============================================
   HEADER STYLING
   ============================================ */

/* Unified Header */
.daubigny-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--gray-light);
}

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 20px;
    gap: 30px;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 1;
    transition: opacity 0.2s ease;
    margin: auto 0;
    min-width: 120px;
}

    .logo-container:hover {
        opacity: 0.85;
    }

.logo {
    max-height: 90px;
    width: auto;
    display: block;
}

/* Header Navigation Links */
.header-nav-links {
    display: flex;
    justify-content: flex-end;
}

.nav-links-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link-item a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

    .nav-link-item a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* Right Section Container - Stack vertically */
.header-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0px;
    margin-left: auto;
}

/* Top row - Language + Home links together */
.header-top-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    padding: 2px 4px;
    transition: color 0.2s ease;
}

    .lang-link:hover {
        color: var(--primary-dark);
    }

    .lang-link.active {
        color: var(--primary);
        font-weight: 700;
        border-radius: 4px;
        padding: 3px 6px;
        border: 1px solid var(--primary);
    }

.lang-separator {
    color: #999;
    font-size: 11px;
}

/* Header Navigation Links */
.header-nav-links {
    display: flex;
}

.nav-links-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link-item a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

    .nav-link-item a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* Emergency Contact Section - Below top row */
.header-emergency-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.emergency-badge {
    font-size: 11px;
    font-weight: 700;
    color: #d32f2f;
    letter-spacing: 0.5px;
}

.emergency-phone {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}

.creditcards {
    height: 42px;
    margin: 0 -3px 15px -5px;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 24px;
    color: var(--text-dark);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .header-container {
        gap: 20px;
        padding: 12px 16px;
    }

    .logo {
        max-height: 75px;
    }

    .nav-links-list {
        gap: 20px;
    }

    .nav-link-item a {
        font-size: 12px;
    }

    .emergency-phone {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .mobile-menu-button {
        display: block;
    }

    .header-right-section {
        flex-direction: column;
        gap: 0px;
        order: 3;
        align-items: flex-end;
    }

    .header-nav-links {
        width: 100%;
    }

    .nav-links-list {
        justify-content: flex-end;
        gap: 20px;
    }

    .logo {
        max-height: 60px;
    }

    .language-toggle {
        padding-top: 0;
    }

    .emergency-phone {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px 10px;
    }

    .logo {
        max-height: 75px;
        width: 100%;
        max-width: 234px;
    }

    .header-right-section {
        flex-shrink: 0;
        width: auto;
    }

    .nav-links-list {
        gap: 12px;
    }

    .nav-link-item a {
        font-size: 11px;
    }

    .emergency-badge {
        font-size: 10px;
    }

    .emergency-phone {
        font-size: 14px;
    }

    .language-toggle {
        font-size: 10px;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--primary);
}

.db-panel h2,
.db-panel h3,
.db-summary-title {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

/* Form panels */
.db-panel {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    padding: 20px;
}

/* Form controls (border-bottom style) */
.form-control {
    border: none;
    border-bottom: 2px solid var(--gray-light);
    border-radius: 0;
    padding: 8px;
    background: transparent;
    transition: border-color 0.2s ease;
    font-family: var(--font-body);
}

    .form-control:focus {
        border-bottom-color: var(--primary);
        box-shadow: none;
        outline: none;
    }

select.form-control {
    border-bottom: 2px solid var(--gray-light);
    background: transparent;
}

    select.form-control:focus {
        border-bottom-color: var(--primary);
    }

.btn-primary {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 10px 32px;
    font-weight: 600;
    transition: 0.2s ease;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: var(--white);
        color: var(--primary);
        border-color: var(--primary);
    }

    .btn-primary:active {
        background-color: var(--primary-light);
        border-color: var(--primary-light);
        color: var(--white);
    }

label {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #6c6c6c;
    margin-bottom: 6px;
    display: block;
}

.field-validation-error {
    color: #E31937;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ============================================
   FOOTER STYLING
   ============================================ */

.db-footer {
    background-color: var(--footer-bg);
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--gray-light);
}

.footer-layout {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.footer-left {
    text-align: left;
    flex: 1;
    min-width: 150px;
}

.footer-right {
    text-align: right;
    flex: 1;
    min-width: 200px;
}

    .footer-left a,
    .footer-right a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        transition: 0.2s ease;
    }

        .footer-left a:hover,
        .footer-right a:hover {
            text-decoration: underline;
            color: var(--primary-dark);
        }

.footer-center {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    font-size: 12px;
    color: var(--footer-text);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.db-trust-icons i {
    color: var(--primary);
    margin-right: 12px;
    margin-left:12px;
}

hr {
    border-top-color: var(--gray-light);
    margin: 20px 0;
}

.container {
    max-width: 1240px;
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

a {
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

button {
    transition: all 0.2s ease;
}

/* ============================================
   UTILITIES
   ============================================ */

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 576px) {
    .footer-layout {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
        flex: none;
        width: 100%;
    }

    .footer-center {
        margin-top: 16px;
        padding-top: 16px;
    }
}

.progress-animation {
    width: 230px;
    height: 10px;
    margin: 10px auto;
    -webkit-mask: linear-gradient(90deg,#000 70%,#0000 0) 0/10%;
    background: linear-gradient(#000 0 0) 0/0% no-repeat #ddd;
    animation: p4 8s infinite steps(12);
}

@keyframes p4 {
    100% {
        background-size: 120%
    }
}