/* filename: style.css */
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f0f2f5; /* Light gray background for the overall page */
    display: flex; /* Changed to flex for admin dashboard layout */
    justify-content: center;
    align-items: flex-start; /* Aligns content to the top */
    min-height: 100vh;
    padding: 16px 0; /* Vertical padding for the body */
    box-sizing: border-box;
}

.container {
    max-width: 420px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* HEADER */
header {
    height: 90px;
    background: linear-gradient(90deg, #0A58CA, #2F80ED);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    color: white;
    position: relative;
    z-index: 10; /* Ensure header is on top */
}

.logo-area {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo {
    height: 40px; /* Adjust logo size as needed */
    width: auto;
    /* This filter makes the SVG white, assuming its original color is dark */
    filter: brightness(0) invert(1);
    margin-bottom: 2px;
}

.subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin-left: auto;
    z-index: 11; /* Ensure hamburger is clickable */
}

.hamburger-icon div {
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 1px;
}

/* MAIN CONTENT AREAS */
main {
    padding: 16px;
}

/* STAGE 1 - LANDING PAGE SPECIFIC STYLES */
.stage-one-content {
    padding-bottom: 80px; /* Space for the lower graphic */
}

/* TITLE (SHARED STYLE) */
.title, .form-title {
    font-size: 28px;
    color: #6FA8DC;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* PARAGRAPHS */
p {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blue-text {
    color: #2F80ED;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* BUTTON (SHARED STYLE) */
.action-button {
    width: 90%;
    height: 50px;
    background: #2ED1C3;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin: 25px auto 0 auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
    outline: none;
}

.action-button:hover {
    background-color: #25b0a5;
    transform: translateY(-1px);
}

.action-button:active {
    background-color: #1e9a8f;
    transform: translateY(1px);
}

/* LOWER GRAPHIC (ONLY ON LANDING PAGE) */
.lower-graphic {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23E5E5E5' fill-opacity='1' d='M0,192L48,170.7C96,149,192,107,288,112C384,117,480,171,576,192C672,213,768,203,864,181.3C960,160,1056,128,1152,112C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
    z-index: 0;
}

/* STAGE 2+ - FORM PAGE SPECIFIC STYLES */
.progress-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 16px;
    background-color: #f8f8f8; /* Light background for progress section */
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1; /* Distribute space evenly */
}

.icon-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: #ccc;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1; /* Ensure circle is above the line */
}

.progress-step.active .icon-circle {
    border-color: #2F80ED;
    color: #2F80ED;
    background-color: #e6f0ff; /* Light blue background for active icon */
}

.progress-step.completed .icon-circle {
    border-color: #2ED1C3; /* Green for completed steps */
    color: #2ED1C3;
    background-color: #e6fffd;
}

.step-label {
    font-size: 10px;
    font-weight: 500;
    color: #777;
    margin-top: 8px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #2F80ED;
}
.progress-step.completed .step-label {
    color: #2ED1C3;
}


.progress-line {
    flex-grow: 1;
    height: 2px;
    background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
    background-size: 8px 2px; /* Dotted line effect */
    background-repeat: repeat-x;
    margin: 0 -10px; /* Overlap to connect circles */
    position: relative;
    top: -20px; /* Align with middle of circles */
    z-index: 0; /* Behind circles */
}

.progress-line.completed-line {
    background-image: linear-gradient(to right, #2ED1C3 100%, transparent 0%); /* Solid green for completed lines */
}


/* FORM FIELDS */
.form-content {
    padding: 16px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="date"], /* Added date input */
.form-field select { /* Added select to this list */
    width: calc(100% - 24px); /* Full width minus padding */
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.2s ease;
    -webkit-appearance: none; /* Remove default browser styling for select */
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23aaa' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); /* Custom dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.form-field input[type="text"]::placeholder,
.form-field input[type="tel"]::placeholder,
.form-field input[type="email"]::placeholder,
.form-field input[type="password"]::placeholder,
.form-field input[type="date"]::placeholder,
.form-field select::placeholder {
    color: #aaa;
}

.form-field input[type="text"]:focus,
.form-field input[type="tel"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="password"]:focus,
.form-field input[type="date"]:focus,
.form-field select:focus {
    border-color: #2F80ED;
    outline: none;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.2);
}

/* Specific styles for split fields (Expiry Date, CVV) */
.split-fields {
    display: flex;
    gap: 16px; /* Space between the two half-width fields */
}

.half-field {
    flex: 1; /* Each takes equal width */
}

.half-field input {
    width: 100%; /* Make input fill its half-field container */
}