/* =========================================================
   CLICK & FIX TECHNOLOGIES
   APPOINTMENT BOOKING PORTAL
   Global Styles
   ========================================================= */


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #eaf3ff;

    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;

    --dark: #172033;
    --text: #334155;
    --muted: #64748b;

    --border: #e2e8f0;
    --background: #f8fafc;
    --white: #ffffff;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 15px 40px rgba(15, 23, 42, 0.10);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}


/* =========================================================
   GLOBAL RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--background);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: var(--shadow-sm);
}

.brand-wrapper {
    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: var(--white);

    font-size: 16px;
    font-weight: 800;

    box-shadow:
        0 5px 15px rgba(13, 110, 253, 0.25);
}

.brand-name {
    margin: 0;

    font-size: 17px;
    font-weight: 700;

    color: var(--dark);

    line-height: 1.2;
}

.brand-tagline {
    margin: 3px 0 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.2;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    max-width: 720px;

    margin: 25px auto 30px;

    padding: 15px 10px;
}

.hero-icon {
    width: 68px;
    height: 68px;

    margin: 0 auto 18px;

    border-radius: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);

    font-size: 30px;

    box-shadow: var(--shadow-sm);
}

.hero-section h2 {
    margin: 0;

    color: var(--dark);

    font-size: clamp(25px, 5vw, 36px);
    font-weight: 800;

    line-height: 1.2;
}

.hero-description {
    max-width: 580px;

    margin: 12px auto 0;

    color: var(--muted);

    font-size: 15px;
}


/* =========================================================
   ACTION SECTION
   ========================================================= */

.action-section {
    max-width: 950px;

    margin: 0 auto;
}

.action-card {
    height: 100%;

    min-height: 150px;

    padding: 22px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    display: flex;
    align-items: center;

    gap: 16px;

    position: relative;

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.action-card:hover {
    transform: translateY(-3px);

    border-color: rgba(13, 110, 253, 0.35);

    box-shadow: var(--shadow-md);
}

.action-card:active {
    transform: translateY(-1px);
}

.action-icon {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);

    font-size: 25px;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    margin: 0 0 5px;

    color: var(--dark);

    font-size: 18px;
    font-weight: 700;
}

.action-content p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;
}

.action-arrow {
    color: var(--primary);

    font-size: 25px;
    font-weight: 600;

    transition: transform 0.2s ease;
}

.action-card:hover .action-arrow {
    transform: translateX(4px);
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
    max-width: 950px;

    margin-left: auto;
    margin-right: auto;

    padding-bottom: 25px;
}

.section-heading h3 {
    margin: 0;

    color: var(--dark);

    font-size: 23px;
    font-weight: 750;
}

.section-heading p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 14px;
}

.service-card {
    min-height: 105px;

    padding: 17px 12px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    gap: 8px;

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-md);
}

.service-card span {
    font-size: 25px;
}

.service-card strong {
    color: var(--dark);

    font-size: 12px;
    font-weight: 650;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 30px;

    padding: 24px 15px;

    background: var(--white);

    border-top: 1px solid var(--border);

    color: var(--muted);
}

.site-footer p {
    color: var(--dark);

    font-size: 13px;
    font-weight: 600;
}

.site-footer small {
    font-size: 11px;
}


/* =========================================================
   SUCCESS PAGE
   ========================================================= */

.success-container {
    max-width: 650px;

    margin: 0 auto;

    text-align: center;
}

.success-icon {
    width: 76px;
    height: 76px;

    margin: 10px auto 20px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f7ef;

    color: var(--success);

    font-size: 40px;
    font-weight: 700;

    box-shadow:
        0 8px 25px rgba(25, 135, 84, 0.12);
}

.success-container h2 {
    margin: 0;

    color: var(--dark);

    font-size: clamp(25px, 5vw, 34px);
    font-weight: 800;
}

.success-message {
    max-width: 520px;

    margin: 12px auto 25px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   APPOINTMENT CONFIRMATION CARD
   ========================================================= */

.appointment-confirmation-card {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    padding: 5px 20px;

    text-align: left;

    box-shadow: var(--shadow-md);
}

.confirmation-title {
    padding: 15px 0;

    color: var(--dark);

    font-size: 16px;
    font-weight: 750;

    border-bottom: 1px solid var(--border);
}

.confirmation-row {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom: 1px solid #f1f5f9;
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-row span {
    color: var(--muted);

    font-size: 13px;
}

.confirmation-row strong {
    color: var(--dark);

    font-size: 13px;

    text-align: right;
}

.status-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    border-radius: 50px;

    background: #fff3cd;

    color: #856404 !important;

    font-size: 11px !important;
}


/* =========================================================
   SUCCESS ACTIONS
   ========================================================= */

.success-actions {
    margin-top: 20px;

    display: flex;
    flex-direction: column;

    gap: 10px;
}

.success-actions .btn {
    width: 100%;

    min-height: 46px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;
}

.copy-message {
    min-height: 22px;

    margin: 8px 0 0;

    color: var(--success);

    font-size: 12px;
}


/* =========================================================
   BOOTSTRAP BUTTON REFINEMENT
   ========================================================= */

.btn {
    border-radius: 10px;

    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary);

    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);

    border-color: var(--primary-dark);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 768px) {

    .brand-wrapper {
        min-height: 78px;
    }

    .hero-section {
        margin-top: 45px;
        margin-bottom: 40px;
    }

    .action-card {
        padding: 26px;
    }

    .success-actions {
        flex-direction: row;
        justify-content: center;
    }

    .success-actions .btn {
        width: auto;
        min-width: 180px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.3);

    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}

/* =========================================================
   FONT & TEXT RENDERING FIX
   ========================================================= */

html,
body,
button,
input,
textarea,
select,
option,
label,
a,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
small,
strong {
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif !important;

    font-style: normal;
    font-variant: normal;
    text-transform: none;
}

/* Prevent icon/symbol fonts from affecting normal text */
body {
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif !important;

    unicode-bidi: normal;
}

/* Normal text should never use an icon font */
.text,
.text *,
p,
h1,
h2,
h3,
h4,
h5,
h6,
label,
small,
strong,
.form-label,
.form-control,
.form-select,
button {
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif !important;
}

/* Keep emoji rendering normal */
.emoji,
[aria-label*="emoji"] {
    font-family:
        "Segoe UI Emoji",
        "Apple Color Emoji",
        "Noto Color Emoji",
        sans-serif !important;
}
