/*
 * BVC Registration Form Styles
 * =============================
 * Styles for the WooCommerce registration form on the My Account page.
 * All colors/sizes use CSS variables from bvc-variables.css — change them
 * there or in Appearance > Customize > BVC Shopping Cart.
 */

/* === Registration Form Container === */
.woocommerce-account .woocommerce-form-register {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bvc-white);
    border: 1px solid var(--bvc-border);
    border-radius: var(--bvc-radius-lg);
    padding: 30px 35px;
    box-shadow: var(--bvc-shadow);
    font-family: var(--bvc-font-family);
}

/* === Form Header === */
.bvc-reg-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bvc-dark);
}

.bvc-reg-header h3 {
    font-size: var(--bvc-font-size-lg);
    color: var(--bvc-dark);
    margin: 0 0 8px 0;
    font-weight: 700;
}

.bvc-reg-header p {
    color: var(--bvc-text-muted);
    font-size: var(--bvc-font-size-base);
    margin: 0;
    line-height: 1.5;
}

/* === Form Field Labels === */
.woocommerce-form-register .form-row label {
    font-weight: 600;
    color: var(--bvc-text);
    font-size: 13px;
    margin-bottom: 4px;
}

/* === Form Inputs === */
.woocommerce-form-register .form-row input,
.woocommerce-form-register .form-row select,
.woocommerce-form-register .form-row textarea {
    border: 1px solid var(--bvc-border-input);
    border-radius: var(--bvc-radius);
    padding: 10px 12px;
    font-size: var(--bvc-font-size-base);
    transition: border-color var(--bvc-transition-fast);
    width: 100%;
    color: var(--bvc-text);
    background-color: var(--bvc-white);
}

/* === Select Dropdown Fix === */
.woocommerce-form-register .form-row select {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    height: 52px;
    color: var(--bvc-text) !important;
    background-color: var(--bvc-white) !important;
    font-size: var(--bvc-font-size-md) !important;
    line-height: 52px !important;
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    text-decoration-line: none !important;
    padding: 0 12px !important;
}

.woocommerce-form-register .form-row select option {
    color: var(--bvc-text) !important;
    background: var(--bvc-white) !important;
    padding: 8px;
    font-size: var(--bvc-font-size-base);
    text-decoration: none !important;
}

/* Override any theme strikethrough on select */
#reg_account_reason,
#reg_account_reason option {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    font-style: normal !important;
}

/* === Focus States === */
.woocommerce-form-register .form-row input:focus,
.woocommerce-form-register .form-row select:focus,
.woocommerce-form-register .form-row textarea:focus {
    border-color: var(--bvc-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.15);
}

/* === Two-Column Layout === */
.woocommerce-form-register .form-row-first,
.woocommerce-form-register .form-row-last {
    width: 48% !important;
    display: inline-block;
    vertical-align: top;
}

.woocommerce-form-register .form-row-first {
    margin-right: 3% !important;
}

/* === Submit Button === */
.woocommerce-form-register button[type="submit"] {
    background: var(--bvc-dark) !important;
    color: var(--bvc-white) !important;
    border: none;
    border-radius: var(--bvc-radius);
    padding: 14px 30px;
    font-size: var(--bvc-font-size-md);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background var(--bvc-transition);
}

.woocommerce-form-register button[type="submit"]:hover {
    background: var(--bvc-accent) !important;
}

/* === Registration Note === */
.bvc-reg-note {
    text-align: center;
    color: var(--bvc-text-light);
}

.bvc-reg-note small {
    font-size: var(--bvc-font-size-sm);
    line-height: 1.5;
}

.bvc-reg-note a {
    color: var(--bvc-accent);
}

/* === Login Form (matching style) === */
.woocommerce-account .woocommerce-form-login {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bvc-white);
    border: 1px solid var(--bvc-border);
    border-radius: var(--bvc-radius-lg);
    padding: 30px 35px;
    box-shadow: var(--bvc-shadow);
}

.woocommerce-account .woocommerce-form-login button[type="submit"] {
    background: var(--bvc-dark) !important;
    color: var(--bvc-white) !important;
    border-radius: var(--bvc-radius);
    padding: 14px 30px;
    font-size: var(--bvc-font-size-md);
    font-weight: 600;
    transition: background var(--bvc-transition);
}

.woocommerce-account .woocommerce-form-login button[type="submit"]:hover {
    background: var(--bvc-accent) !important;
}

/* === Two-Column Account Layout === */
.woocommerce-account .u-columns {
    max-width: 1200px;
    margin: 0 auto;
}

/* === Required Asterisk === */
.woocommerce-form-register .required {
    color: var(--bvc-error);
}

/* === Textarea === */
.woocommerce-form-register textarea {
    resize: vertical;
    min-height: 70px;
}
