/*
 * Custom styling for the Ability Holdings payment portal.
 *
 * This stylesheet defines a modern colour palette inspired by the
 * Ability Holdings corporate identity and introduces a clean
 * interface with generous spacing, rounded cards and a polished
 * stepper component.  Where appropriate Bootstrap variables are
 * overridden to harmonise the default controls with the palette.
 */

:root {
    --dark-blue: #003e5c;        /* primary dark navy */
    --teal: #0086b7;             /* primary accent */
    --teal-light: #00a8e8;       /* lighter accent */
    --success: #2bae66;          /* success badge */
    --muted-light: #f5f8fc;      /* light background */
    --muted-border: #e0e7ef;     /* border colour */
}

/* Reset and typography */
body {
    background-color: var(--muted-light);
    color: var(--dark-blue);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--teal);
    text-decoration: none;
}
a:hover {
    color: var(--teal-light);
}

/* Navbar styling */
.navbar-dark.bg-dark-blue {
    background-color: var(--dark-blue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar-dark .navbar-brand {
    color: white;
}
.navbar-dark .nav-link {
    color: #c2d4e6;
    margin-left: 1rem;
    font-size: 0.95rem;
}
.navbar-dark .nav-link:hover {
    color: var(--teal-light);
}

/* Hero section */
.hero-section {
    position: relative;
    background-image: url("../images/hero_new.png");
    background-size: cover;
    background-position: center;
    height: 300px;
    padding-top: 5rem; /* account for fixed navbar */
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 0;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.hero-section p {
    color: #ffffff;
}
.hero-section .lead {
    font-size: 1.25rem;
}
.hero-section .small {
    color: #dbe6f2;
}

/* Stepper */
.progress-section {
    background-color: var(--muted-light);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.stepper {
    display: flex;
    align-items: center;
}
.step {
    text-align: center;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: var(--dark-blue);
}
.step .circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--teal);
    background-color: var(--muted-light);
    transition: all 0.3s ease;
}
.step.active .circle {
    background-color: var(--teal);
    color: #fff;
}
.step.completed .circle {
    background-color: var(--teal);
    color: #fff;
}
.step.completed .circle i {
    font-weight: 900;
}
.step span {
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--dark-blue);
}
.line {
    flex: 1;
    height: 2px;
    background-color: var(--muted-border);
}
.step + .line {
    margin: 0 0.5rem;
}
.step.completed + .line {
    background-color: var(--teal);
}
.step.active + .line {
    background-color: var(--teal);
}

/* Card styling */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.bg-muted {
    background-color: var(--muted-border);
}

/* Text utilities */
.text-teal {
    color: var(--teal);
}
.text-accent {
    color: var(--teal);
}
.text-dark-blue {
    color: var(--dark-blue);
}

/* Button styling */
.btn-accent {
    background-color: var(--teal);
    border-color: var(--teal);
    color: #fff;
}
.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--teal-light);
    border-color: var(--teal-light);
    color: #fff;
}

/* Payment card styling */
.payment-card {
    border: 1px solid var(--muted-border);
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}
.payment-card .badge.bg-success {
    background-color: var(--success) !important;
}

/* Payment method selection */
.payment-option .option-card {
    background-color: #fff;
    cursor: pointer;
    border: 1px solid var(--muted-border);
    transition: all 0.2s ease;
}
.payment-option input[type="radio"]:checked + .option-card {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 134, 183, 0.25);
}
.payment-option .option-card:hover {
    border-color: var(--teal);
}

/* Preformatted bank details styling */
pre#bankDetails {
    background-color: var(--muted-border);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--dark-blue);
}

/* Form elements */
.form-label {
    font-weight: 500;
    color: var(--dark-blue);
}
.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 1px solid var(--muted-border);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 134, 183, 0.25);
}

/* Footer */
.footer {
    background-color: var(--muted-light);
    color: var(--dark-blue);
}