
/* ─── Root Variables & Wrapper ─────────────────────────────────────────────── */
.kmr-reg-wrapper {
    --kmr-blue:     #000099;
    --kmr-red:      #ed3626;
    --kmr-peach:    #FBC99A;
    --kmr-orange:   #FF8C00;
    --kmr-text:     #333333;
    --kmr-bg-light: #ffffff;

    font-family: "Lato", sans-serif;
    width: 100%;
    max-width: 100%;
    background: var(--kmr-bg-light);
    color: var(--kmr-text);
    line-height: 1.6;
    box-sizing: border-box;
}

.kmr-reg-wrapper *,
.kmr-reg-wrapper *::before,
.kmr-reg-wrapper *::after {
    box-sizing: inherit;
}

/* ─── Header ────────────────────────────────────────────────────────────────── */
.kmr-reg-header {
    background-color: var(--kmr-blue);
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
    border-radius: 8px 8px 0 0;
}

.kmr-reg-header h2 {
    font-family: "Lato", sans-serif;
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 15px 0;
    color: #ffffff;
    line-height: 1.2;
}

.kmr-reg-header p {
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ─── Body ──────────────────────────────────────────────────────────────────── */
.kmr-reg-body {
    padding: 50px 30px;
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.kmr-reg-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--kmr-text);
}

/* ─── Cards ─────────────────────────────────────────────────────────────────── */
.kmr-reg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.kmr-reg-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kmr-reg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.kmr-reg-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-color: var(--kmr-peach);
    border-radius: 10px 10px 0 0;
}

.kmr-reg-card h3 {
    font-family: "Lato", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--kmr-text);
}

.kmr-reg-card .kmr-reg-price {
    font-size: 42px;
    font-weight: 900;
    color: var(--kmr-blue);
    margin-bottom: 15px;
    line-height: 1;
}

.kmr-reg-card .kmr-reg-subtitle {
    font-size: 17px;
    color: #555555;
    margin-bottom: 20px;
    min-height: 45px;
    line-height: 1.4;
}

.kmr-reg-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 14px;
    color: #555555;
}

.kmr-reg-card ul li {
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
}

.kmr-reg-card ul li::before {
    content: "✓";
    color: #d8995e;
    position: absolute;
    left: 0;
    font-weight: 900;
    font-size: 18px;
    top: 2px;
}

/* ─── Info Banner ───────────────────────────────────────────────────────────── */
.kmr-reg-info-banner {
    background-color: #fff8f2;
    border-left: 5px solid var(--kmr-peach);
    padding: 20px 25px;
    font-size: 16px;
    color: var(--kmr-text);
    margin-bottom: 40px;
    border-radius: 6px;
}

.kmr-reg-info-banner a {
    color: var(--kmr-blue);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.kmr-reg-info-banner a:hover {
    color: var(--kmr-red);
}

/* ─── Response Message ──────────────────────────────────────────────────────── */
.kmr-reg-response {
    padding: 18px 22px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.5;
}

.kmr-reg-response.kmr-reg-success {
    background-color: #e9f7ef;
    border-left: 5px solid #27ae60;
    color: #1e7e44;
}

.kmr-reg-response.kmr-reg-error {
    background-color: #fdf0f0;
    border-left: 5px solid var(--kmr-red);
    color: #b71c1c;
}

/* ─── Form Styles ───────────────────────────────────────────────────────────── */
.kmr-reg-form .kmr-reg-required {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    color: var(--kmr-text);
}

.kmr-reg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.kmr-reg-col {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.kmr-reg-col-full {
    flex: 100%;
}

/* Form Fields Base Styling */
.kmr-reg-form input[type="text"],
.kmr-reg-form input[type="email"],
.kmr-reg-form input[type="tel"],
.kmr-reg-form select {
    width: 100%;
    padding: 14px 45px 14px 18px;
    border: 1px solid var(--kmr-blue);
    border-radius: 8px;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    color: var(--kmr-text);
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.kmr-reg-form input::placeholder {
    color: #777777;
}

/* Hover and Focus States */
.kmr-reg-form input[type="text"]:hover,
.kmr-reg-form input[type="email"]:hover,
.kmr-reg-form input[type="tel"]:hover,
.kmr-reg-form select:hover {
    border-color: var(--kmr-orange);
}

.kmr-reg-form input[type="text"]:focus,
.kmr-reg-form input[type="email"]:focus,
.kmr-reg-form input[type="tel"]:focus,
.kmr-reg-form select:focus {
    outline: none;
    border-color: var(--kmr-orange);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(255, 140, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Invalid field highlight */
.kmr-reg-form input.kmr-invalid,
.kmr-reg-form select.kmr-invalid {
    border-color: var(--kmr-red) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(237, 54, 38, 0.15) !important;
}

/* Custom Icons via Base64 SVG Backgrounds */
.kmr-reg-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000099'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 24px;
    cursor: pointer;
}

.kmr-reg-form input[name="first_name"],
.kmr-reg-form input[name="last_name"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000099'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.kmr-reg-form input[name="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000099'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.kmr-reg-form input[name="address"],
.kmr-reg-form input[name="city"],
.kmr-reg-form input[name="state"],
.kmr-reg-form input[name="zip"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000099'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.kmr-reg-form input[name="phone"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000099'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.kmr-reg-form input[name="how_heard"],
.kmr-reg-form input[name="reason"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000099'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

/* ─── Checkboxes ────────────────────────────────────────────────────────────── */
.kmr-reg-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    padding: 10px 0;
}

.kmr-reg-checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.kmr-reg-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--kmr-orange);
}

.kmr-reg-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

/* Screen-reader-only labels */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Submit Button ─────────────────────────────────────────────────────────── */
.kmr-reg-btn {
    background-color: var(--kmr-red);
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 18px;
    font-family: "Lato", sans-serif;
    font-size: 20px;
    font-weight: 900;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kmr-reg-btn:hover {
    background-color: var(--kmr-blue);
}

.kmr-reg-btn:active {
    transform: scale(0.98);
}

.kmr-reg-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .kmr-reg-header {
        padding: 40px 20px;
    }

    .kmr-reg-header h2 {
        font-size: 26px;
    }

    .kmr-reg-body {
        padding: 30px 20px;
    }

    .kmr-reg-col {
        min-width: 100%;
    }
}
