/**
 * Trade registration form styles.
 *
 * Matches the approved mockup (trade-portal-register.html)
 * with Nutural World brand colours.
 */

:root {
    --nw-brown: #714007;
    --nw-brown-dark: #5a3306;
    --nw-cream: #f9f6f0;
    --nw-text: #3a3a3a;
    --nw-text-light: #7a7a7a;
    --nw-border: #e0dbd2;
    --nw-white: #ffffff;
    --nw-success: #5a8f5c;
    --nw-radius: 30px;
    --nw-radius-sm: 6px;
    --nw-radius-input: 4px;
}

.nwtp-register-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--nw-text);
}

/* Intro */
.nwtp-register-intro {
    text-align: center;
    margin-bottom: 30px;
}

.nwtp-register-intro h2 {
    color: var(--nw-brown);
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 500;
}

.nwtp-register-intro p {
    color: var(--nw-text-light);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto;
}

/* Form */
.nwtp-form {
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-sm);
    padding: 40px;
    background: var(--nw-white);
}

.nwtp-form-row {
    margin-bottom: 0;
}

.nwtp-form-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nwtp-form-group {
    margin-bottom: 22px;
}

.nwtp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--nw-text);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nwtp-form-group label .required {
    color: #c0392b;
}

.nwtp-form-group input,
.nwtp-form-group select,
.nwtp-form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-input);
    font-size: 15px;
    font-family: 'Public Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--nw-white);
    color: var(--nw-text);
}

.nwtp-form-group input:focus,
.nwtp-form-group select:focus,
.nwtp-form-group textarea:focus {
    outline: none;
    border-color: var(--nw-brown);
    box-shadow: 0 0 0 3px rgba(113, 64, 7, 0.08);
}

.nwtp-form-group input::placeholder,
.nwtp-form-group textarea::placeholder {
    color: #bbb;
    font-weight: 300;
}

.nwtp-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit button */
.nwtp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: 1.5px solid var(--nw-brown);
    border-radius: var(--nw-radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: 'Public Sans', sans-serif;
    letter-spacing: 0.02em;
    background: transparent;
    color: var(--nw-brown);
}

.nwtp-btn:hover {
    background: var(--nw-brown);
    color: var(--nw-white);
    text-decoration: none;
}

.nwtp-btn-filled {
    background: var(--nw-brown);
    color: var(--nw-white);
    border-color: var(--nw-brown);
    width: 100%;
}

.nwtp-btn-filled:hover {
    background: var(--nw-brown-dark);
    border-color: var(--nw-brown-dark);
}

.nwtp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error */
.nwtp-form-error {
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    border-radius: var(--nw-radius-input);
    padding: 12px 16px;
    font-size: 13px;
    color: #c0392b;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Success State */
.nwtp-register-success {
    text-align: center;
    padding: 60px 40px;
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-sm);
    background: var(--nw-white);
}

.nwtp-success-icon {
    width: 70px;
    height: 70px;
    background: var(--nw-success);
    color: var(--nw-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
}

.nwtp-register-success h3 {
    color: var(--nw-text);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
}

.nwtp-register-success p {
    color: var(--nw-text-light);
    font-size: 15px;
    line-height: 1.7;
    max-width: 450px;
    margin: 0 auto 10px;
    font-weight: 300;
}

/* Steps */
.nwtp-steps {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nwtp-step {
    text-align: center;
    max-width: 160px;
}

.nwtp-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nw-cream);
    color: var(--nw-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin: 0 auto 10px;
}

.nwtp-step p {
    font-size: 13px;
    margin: 0;
    color: var(--nw-text-light);
}

.nwtp-back-btn {
    margin-top: 35px;
}

/* Trade banner on My Account page */
.nwtp-trade-banner {
    background: var(--nw-cream);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-sm);
    padding: 30px 35px;
    margin-bottom: 30px;
    text-align: center;
}

.nwtp-trade-banner h3 {
    color: var(--nw-brown);
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 8px;
}

.nwtp-trade-banner p {
    color: var(--nw-text-light);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.nwtp-trade-banner-btn {
    display: inline-flex !important;
    width: auto !important;
    padding: 12px 28px !important;
}

/* Responsive */
@media (max-width: 600px) {
    .nwtp-form-row--two {
        grid-template-columns: 1fr;
    }

    .nwtp-form {
        padding: 25px 20px;
    }

    .nwtp-register-success {
        padding: 40px 20px;
    }

    .nwtp-steps {
        gap: 25px;
    }
}


/* New fields: country gate, fieldsets, optional/required tags */
.nwtp-form-notice {
    background: #fff8e6;
    border: 1px solid #f0c674;
    color: #6b4a08;
    padding: 14px 18px;
    border-radius: 6px;
    margin: 12px 0 4px;
    font-size: 14px;
    line-height: 1.5;
}
.nwtp-form-notice a { color: #6b4a08; font-weight: 600; text-decoration: underline; }

.nwtp-fieldset {
    border: 1px solid #e0dbd2;
    border-radius: 6px;
    padding: 14px 18px 6px;
    margin: 8px 0 18px;
    background: #fdfcfa;
}
.nwtp-fieldset legend {
    padding: 0 8px;
    font-weight: 600;
    font-size: 14px;
    color: #714007;
}
.nwtp-checkbox-group .nwtp-inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}
.nwtp-checkbox-group .nwtp-inline-checkbox input { margin: 0; }
.optional { color: #888; font-weight: 400; font-size: 0.9em; margin-left: 4px; }
