/* VOM Unsubscribe Pages - Shared Styles */

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
input {
    font-family: "montserrat", "Google Sans", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
body {
    color: #333;
    background-color: #f7f2ea;
    min-height: 100vh;
    padding: 30px 20px 20px;
}

/* ===== Layout ===== */
.content {
    max-width: 500px;
    margin: 0 auto;
}

.vom-logo {
    text-align: center;
    margin-bottom: 24px;
}

.vom-logo img {
    max-width: 220px;
    height: auto;
}

/* ===== Card Component ===== */
.card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    background: #038294;
    padding: 20px 24px;
    text-align: center;
}

#lblTitle {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.card-body {
    padding: 32px 24px;
}

#lblContent {
    display: block;
}

/* ===== Card Intro ===== */
.card-intro {
    text-align: center;
    color: #555;
    font-size: 15px;
    margin-bottom: 28px;
}

.card-intro strong {
    color: #038294;
    font-weight: 600;
}

/* ===== Checkbox List ===== */
ul.card-checks {
    list-style: none;
    padding: 0;
    margin: 0;
}

li.card-checks {
    margin-bottom: 8px;
    position: relative;
}

/* Hide native checkbox */
li.card-checks input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkbox via label */
li.card-checks label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 16px;
    margin: 0;
    border-radius: 8px;
    transition: background-color 0.15s ease;
    position: relative;
}

li.card-checks label:hover {
    background-color: #f8f8f8;
}

/* Custom checkbox box */
li.card-checks label::before {
    content: "";
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 14px;
    background: #fff;
    transition: all 0.15s ease;
}

/* Checked state - box */
li.card-checks input[type="checkbox"]:checked + label::before {
    background: #038294;
    border-color: #038294;
}

/* Checkmark */
li.card-checks label::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 25px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Checked state - checkmark */
li.card-checks input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

/* Focus state for accessibility */
li.card-checks input[type="checkbox"]:focus + label::before {
    box-shadow: 0 0 0 3px rgba(3, 130, 148, 0.2);
}

/* ===== Submit Button ===== */
.card-submit input[type="submit"] {
    width: 100%;
    background: #038294;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.card-submit input[type="submit"]:hover {
    background: #026b7a;
    transform: translateY(-1px);
}

.card-submit input[type="submit"]:active {
    transform: translateY(0);
}

/* ===== Primary Button Link ===== */
.card-submit a {
    display: block;
    width: 100%;
    background: #038294;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.card-submit a:hover {
    background: #026b7a;
    transform: translateY(-1px);
}

.card-submit a:active {
    transform: translateY(0);
}

/* ===== Secondary Button/Link ===== */
.card-submit-secondary {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.card-submit-secondary a {
    color: #038294;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.card-submit-secondary a:hover {
    color: #026b7a;
    text-decoration: underline;
}

/* Secondary as button style (for legacy page) */
.card-submit-secondary--button {
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
}

.card-submit-secondary--button a {
    display: block;
    background: #f8fafc;
    color: #555;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.card-submit-secondary--button a:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #555;
    text-decoration: none;
}

/* ===== Confirmation Page ===== */
.card-body--confirmation {
    padding: 48px 24px;
    text-align: center;
}

.card-body--confirmation #lblContent {
    font-size: 17px;
    color: #555;
}

.success-icon,
.warning-icon {
    width: 72px;
    height: 72px;
    background: #10b981;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.warning-icon {
    background: #f59e0b;
}

.success-icon svg,
.warning-icon svg {
    width: 36px;
    height: 36px;
}

/* ===== Legacy Page ===== */
.card-body--legacy {
    padding: 40px 24px 48px;
    text-align: center;
}

.card-body--legacy .card-intro {
    margin-bottom: 24px;
}

.card-body--legacy .card-intro strong {
    display: block;
    font-size: 21px;
    margin: 6px 0;
}

.card-body--legacy .card-submit {
    margin-top: 0;
}

.card-body--legacy .card-submit-secondary {
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
}

.card-body--legacy .card-submit-secondary a {
    display: block;
    background: #f8fafc;
    color: #555;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card-body--legacy .card-submit-secondary a:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #555;
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .vom-logo {
        margin-bottom: 24px;
    }

    .vom-logo img {
        max-width: 180px;
    }

    .card-header {
        padding: 16px 20px;
    }

    #lblTitle {
        font-size: 18px;
    }

    .card-body {
        padding: 24px 20px;
    }

    .card-body--confirmation {
        padding: 36px 20px;
    }

    .card-body--legacy {
        padding: 32px 20px 40px;
    }

    .card-submit input[type="submit"],
    .card-submit a,
    .card-submit-secondary--button a,
    .card-body--legacy .card-submit-secondary a {
        padding: 12px 20px;
        font-size: 14px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon svg {
        width: 30px;
        height: 30px;
    }

    .card-body--confirmation #lblContent {
        font-size: 16px;
    }
}
