/* VitalCare — Public Registration Form */

.vcm-public-form { max-width: 820px; margin: 0 auto; font-family: inherit; color: #111827; }

.vcm-pub-section { margin-bottom: 2em; }
.vcm-pub-section h3 {
    font-size: 1.05em;
    font-weight: 700;
    margin: 0 0 .9em;
    padding-bottom: .45em;
    border-bottom: 2px solid #e5e7eb;
    color: #111827;
}

/* Grid */
.vcm-pub-grid   { display: grid; grid-template-columns: repeat(2,1fr); gap: .75em; }
.vcm-pub-grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 640px) {
    .vcm-pub-grid,
    .vcm-pub-grid-4 { grid-template-columns: 1fr; }
}

/* Fields */
.vcm-pub-field label {
    display: block;
    font-size: .85em;
    font-weight: 600;
    color: #374151;
    margin-bottom: .3em;
}
.vcm-pub-field input,
.vcm-pub-field select,
.vcm-pub-field textarea {
    width: 100%;
    padding: .55em .8em;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .9em;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.vcm-pub-field input:focus,
.vcm-pub-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.vcm-req     { color: #dc2626; }
.vcm-pub-optional { font-size: .8em; font-weight: normal; color: #6b7280; }
.vcm-pub-hint { font-size: .85em; color: #6b7280; margin: -.5em 0 .75em; }

/* Plan cards */
.vcm-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; }
@media (max-width: 768px) { .vcm-plan-grid { grid-template-columns: 1fr; } }

.vcm-plan-card { cursor: pointer; display: block; }
.vcm-plan-card input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.vcm-plan-inner {
    display: flex;
    flex-direction: column;
    gap: .35em;
    padding: 1.1em 1.2em;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    height: 100%;
    box-sizing: border-box;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.vcm-plan-card:hover .vcm-plan-inner {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(37,99,235,.1);
}
.vcm-plan-card input:checked ~ .vcm-plan-inner {
    border-color: #2563eb;
    background: #eff6ff;
}
.vcm-plan-name  { font-weight: 700; font-size: 1em; color: #111827; }
.vcm-plan-price { font-size: 1.25em; font-weight: 700; color: #2563eb; }
.vcm-plan-desc  { font-size: .8em; color: #6b7280; line-height: 1.4; margin-top: .1em; }

/* Stripe card element */
.vcm-card-el {
    padding: .75em 1em;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.vcm-card-el.StripeElement--focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Notices */
.vcm-pub-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: .7em 1em;
    border-radius: 6px;
    font-size: .875em;
    margin-bottom: .75em;
}

/* Dependents */
.vcm-dep-row { position: relative; }
.vcm-dep-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: .8em;
    padding: .2em 0;
    text-decoration: underline;
    margin-top: .25em;
    display: block;
}
.vcm-pub-add-btn {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: .875em;
    padding: .3em 0;
    text-decoration: underline;
    margin-top: .4em;
}

/* Plan — dependent pricing hint */
.vcm-plan-deps {
    font-size: .72em;
    color: #6b7280;
    line-height: 1.4;
    margin-top: .3em;
    border-top: 1px solid #e5e7eb;
    padding-top: .3em;
}

/* Price summary box */
.vcm-price-summary {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: .9em 1.2em;
    margin-bottom: 1.5em;
    font-size: .9em;
}
.vcm-ps-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .25em 0;
    border-bottom: 1px solid #dbeafe;
    color: #1e3a8a;
}
.vcm-ps-row:last-child { border-bottom: none; }
.vcm-ps-label { color: #374151; }
.vcm-ps-total {
    margin-top: .25em;
    font-size: 1.05em;
    border-top: 2px solid #93c5fd;
    border-bottom: none;
    padding-top: .4em;
    color: #1d4ed8;
}
.vcm-ps-total .vcm-ps-label { font-weight: 600; color: #1d4ed8; }

/* Submit */
.vcm-pub-submit     { margin-top: 1.5em; }
.vcm-pub-submit-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .75em 2.2em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.vcm-pub-submit-btn:hover    { background: #1d4ed8; }
.vcm-pub-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Add-ons table */
.vcm-pub-addons-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9em;
    margin-top: .5em;
}
.vcm-pub-addons-table th,
.vcm-pub-addons-table td {
    padding: .5em .65em;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}
.vcm-pub-addons-table thead th {
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    font-weight: 600;
}
.vcm-pub-free-qty { color: #6b7280; text-align: center; }

/* Qty control (shared between admin and public) */
.vcm-qty-control {
    display: inline-flex;
    align-items: center;
}
.vcm-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 1em;
    line-height: 1;
    padding: 0;
    color: #6b7280;
}
.vcm-qty-btn:hover { background: #e5e7eb; }
.vcm-qty-minus { border-radius: 4px 0 0 4px; }
.vcm-qty-plus  { border-radius: 0 4px 4px 0; }
.vcm-qty-input {
    width: 44px;
    height: 26px;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: .9em;
    padding: 0;
    -moz-appearance: textfield;
}
.vcm-qty-input::-webkit-inner-spin-button,
.vcm-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
