/* B&W-style reseller form */
.sh-reseller-form-bw-style {
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
}
.sh-reseller-form-bw-style .sh-reseller-form-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}
.sh-reseller-form-bw-style .sh-reseller-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    color: #1a1a1a;
}
.sh-reseller-form-bw-style .sh-reseller-form-notice {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}
.sh-reseller-form-bw-style .sh-reseller-form-inner,
.sh-reseller-form-bw-style .mdsh-form-box {
    background: #fff;
    padding: 1.5rem 2rem;
}
.sh-reseller-form-bw-style .mdsh-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    color: #333;
    border-bottom: 2px solid #333;
}
.sh-reseller-form-bw-style .cnt-frm.mdsh-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.sh-reseller-form-bw-style .cnt-frm.mdsh-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.sh-reseller-form-bw-style .form-row label {
    font-weight: 500;
    color: #333;
}
.sh-reseller-form-bw-style .form-row input.input-text,
.sh-reseller-form-bw-style .form-row select,
.sh-reseller-form-bw-style .form-row textarea {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0.5rem 0.6rem;
    font-size: 1rem;
}
.sh-reseller-form-bw-style .cnt-submit {
    margin-top: 2.75rem !important;
}
.sh-reseller-form-bw-style .wpcf7-form-control.wpcf7-submit {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}
@media (max-width: 640px) {
    .sh-reseller-form-bw-style {
        padding: 0 0.75rem;
    }
    .sh-reseller-form-bw-style .sh-reseller-form-inner,
    .sh-reseller-form-bw-style .mdsh-form-box {
        padding: 1rem;
    }
}
/* Full-width fields: each field and input spans 100% */
#reseller-application .mdsh-custom-form .cnt-frm-field,
#reseller-application .mdsh-custom-form .cnt-frm-field.width--100,
#reseller-application .mdsh-custom-form .sh-reseller-contacts-row {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100%;
}
#reseller-application .mdsh-custom-form .form-row input.input-text,
#reseller-application .mdsh-custom-form .form-row input[type="email"],
#reseller-application .mdsh-custom-form .form-row input[type="url"],
#reseller-application .mdsh-custom-form .form-row input[type="text"],
#reseller-application .mdsh-custom-form .form-row select,
#reseller-application .mdsh-custom-form .form-row textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}
#reseller-application .mdsh-custom-form .woocommerce-input-wrapper {
    width: 100%;
}
#reseller-application .mdsh-custom-form #mdsh-reseller-section2 .sh-reseller-contacts-row {
    width: 100% !important;
    flex: 0 0 100% !important;
}
/* Reduce space – sections */
#reseller-application .mdsh-custom-form .cnt-frm.mdsh-section,
.sh-reseller-form-bw-style .mdsh-custom-form .cnt-frm.mdsh-section {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
}
#reseller-application .mdsh-custom-form .cnt-frm-field,
.sh-reseller-form-bw-style .mdsh-custom-form .cnt-frm-field {
    margin-bottom: 0;
    padding: 0 0 0.2rem;
}
#reseller-application .mdsh-custom-form .cnt-frm-field [class*="-ttl"],
.sh-reseller-form-bw-style .mdsh-custom-form .cnt-frm-field [class*="-ttl"] {
    margin-top: 0;
    margin-bottom: 0;
}
#reseller-application .mdsh-custom-form .form-row,
.sh-reseller-form-bw-style .mdsh-custom-form .form-row {
    margin-bottom: 0.25rem;
}
#reseller-application .mdsh-custom-form .form-row label:first-child,
.sh-reseller-form-bw-style .mdsh-custom-form .form-row label:first-child {
    margin-bottom: 0.15rem;
}
#reseller-application .mdsh-custom-form .woocommerce-input-wrapper,
.sh-reseller-form-bw-style .mdsh-custom-form .woocommerce-input-wrapper {
    gap: 0.35em 0.75em;
}
#reseller-application .mdsh-custom-form .cnt-submit,
.sh-reseller-form-bw-style .mdsh-custom-form .cnt-submit {
    margin-top: 0.75rem;
}
#reseller-application .sh-reseller-form-intro,
.sh-reseller-form-bw-style .sh-reseller-form-intro {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}
#reseller-application .mdsh-title,
.sh-reseller-form-bw-style .mdsh-title {
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
}
.cnt-frm span.wpcf7-list-item-label {
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 14px;
}
.cnt-frm .cnt-frm-field label {
    font-size: 14px;
}
/* Fix select box – full text visible, no truncation */
#reseller-application .mdsh-custom-form .form-row select,
#reseller-application .mdsh-custom-form select.mdsh-wr-select,
.sh-reseller-form-bw-style .mdsh-custom-form .form-row select,
.sh-reseller-form-bw-style .mdsh-custom-form select.mdsh-wr-select {
    height: auto !important;
    min-height: 38px;
    padding: 0.4em 0.6em !important;
    line-height: 1.4 !important;
    appearance: auto;
    -webkit-appearance: menulist;
}
/* 2nd / 3rd contact sections: stacked, full-width layout (no weird columns) */
#reseller-application .sh-reseller-additional-contact-row,
.sh-reseller-form-bw-style .sh-reseller-additional-contact-row {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8e8e8;
}
#reseller-application .sh-reseller-additional-contact-row .cnt-frm-field,
#reseller-application .sh-reseller-additional-contact-row .sh-reseller-contacts-row,
.sh-reseller-form-bw-style .sh-reseller-additional-contact-row .cnt-frm-field,
.sh-reseller-form-bw-style .sh-reseller-additional-contact-row .sh-reseller-contacts-row {
    width: 100% !important;
    flex: none !important;
    max-width: 100%;
}
#reseller-application .sh-reseller-additional-contact-row .cnt-frm-field.width--100 p.form-row label,
.sh-reseller-form-bw-style .sh-reseller-additional-contact-row .cnt-frm-field.width--100 p.form-row label {
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.cnt-frm.mdsh-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #7d7373;
}
.sh-reseller-disclaimer {
    font-size: 14px;
    font-style: italic;
}
/* I AGREE TO THE TERMS section – B&W-style */
.sh-reseller-agree-terms-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0e0e0;
}
.sh-reseller-agree-terms-heading {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 1rem 0;
}
.sh-reseller-terms-scroll-box {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #eee;
    background: #fff;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
.sh-reseller-terms-scroll-box:hover {
    scrollbar-color: #bbb #f1f1f1;
}
.sh-reseller-terms-scroll-box::-webkit-scrollbar {
    width: 8px;
}
.sh-reseller-terms-scroll-box::-webkit-scrollbar-track {
    background: transparent;
}
.sh-reseller-terms-scroll-box::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}
.sh-reseller-terms-scroll-box:hover::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.sh-reseller-terms-scroll-box:hover::-webkit-scrollbar-thumb {
    background: #bbb;
}
.sh-reseller-terms-content p {
    margin: 0 0 0.75em 0;
}
.sh-reseller-terms-content p:last-child {
    margin-bottom: 0;
}
.sh-reseller-terms-content strong {
    font-weight: 700;
}
#reseller-application .form-row.mdsh-valid-err input:not([type="checkbox"]):not([type="radio"]),
#reseller-application .form-row.mdsh-valid-err select,
#reseller-application .form-row.mdsh-valid-err textarea {
    border-color: #c00;
}
#reseller-application .form-row.mdsh-valid-err .error {
    color: #c00;
    font-size: 13px;
    margin-top: 4px;
}
.g-recaptcha span.error {
    color: #c00;
    font-size: 13px;
}
.checkbox-row {
    display: flow-root;
}
.checkbox-row label.mdsh-wr-checkbox-wrap {
    width: 20% !important;
}
.cnt-frm input[type=radio]:checked+span.wpcf7-list-item-label::after{
    left: -1px;
    top: -3px;
}
.cnt-frm input[type=checkbox]:checked+span.wpcf7-list-item-label::after{
    left: -1px;
    top: -1px;
}
.woocommerce-input-wrapper select{
    font-size: 14px !important;
    color: #333;
}
@media (max-width: 991px) {
    .checkbox-row label.mdsh-wr-checkbox-wrap {
        width: 25% !important;
    }
}
@media (max-width: 768px) {
    .checkbox-row label.mdsh-wr-checkbox-wrap {
        width: 100% !important;
    }
}
