/* Find Reseller modal – Videofun theme styling */
/* Theme green: #548335 */

.find-reseller-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.find-reseller-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999999;
}

.find-reseller-modal-content {
    position: relative;
    max-width: 560px;
    margin: 2rem auto;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000000;
    border-radius: 2px;
    overflow: hidden;
}

.find-reseller-modal-content .find-reseller-modal-title {
    background-color: #548335;
    color: #fff;
    padding: 14px 3rem 14px 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.find-reseller-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    opacity: 0.9;
}

.find-reseller-close:hover {
    color: #fff;
}

.find-reseller-form-wrap {
    position: relative;
    z-index: 1;
    padding: 35px;
    background-color: #fff;
}

.find-reseller-form-wrap .formbuilder-form .form-content {
    padding: 0;
}

.find-reseller-form-wrap form.formbuilder {
    background-color: transparent;
    padding: 0;
}

.find-reseller-form-wrap .form-list.row {
    margin-left: 0;
    margin-right: 0;
}

.find-reseller-form-wrap .form-list .field {
    margin-bottom: 1.25rem;
    min-height: auto;
}

.find-reseller-form-wrap .form-list .field.col-sm-12 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Stacked layout: label above input (like admin UI) */
.find-reseller-form-wrap .response-field-text .subtemplate-wrapper,
.find-reseller-form-wrap .response-field-email .subtemplate-wrapper {
    display: block;
}

.find-reseller-form-wrap .response-field-text .subtemplate-wrapper > label,
.find-reseller-form-wrap .response-field-email .subtemplate-wrapper > label {
    display: block;
    margin: 0 0 0.4rem 0;
    font-weight: 600;
    color: #333;
}

.find-reseller-form-wrap .response-field-text .subtemplate-wrapper > .row,
.find-reseller-form-wrap .response-field-email .subtemplate-wrapper > .row {
    margin: 0;
}

.find-reseller-form-wrap .response-field-text .subtemplate-wrapper > .row .input-box,
.find-reseller-form-wrap .response-field-text .subtemplate-wrapper > .row [class*="col-sm-"],
.find-reseller-form-wrap .response-field-email .subtemplate-wrapper > .row .input-box,
.find-reseller-form-wrap .response-field-email .subtemplate-wrapper > .row [class*="col-sm-"] {
    max-width: 100%;
    padding: 0;
}

.find-reseller-form-wrap .subtemplate-wrapper .subtemplate-inner {
    width: 100%;
}

/* Hide required asterisk only */
.find-reseller-form-wrap label em {
    display: none !important;
}

.find-reseller-form-wrap input[type="text"],
.find-reseller-form-wrap input[type="email"],
.find-reseller-form-wrap textarea,
.find-reseller-form-wrap select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 0.95rem;
    font-family: Arial, Helvetica, sans-serif;
}

.find-reseller-form-wrap input:focus,
.find-reseller-form-wrap textarea:focus,
.find-reseller-form-wrap select:focus {
    border-color: #548335;
    outline: none;
    box-shadow: 0 0 0 1px #548335;
}

.find-reseller-form-wrap .buttons-set {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.find-reseller-form-wrap .formbuilder-button.button,
.find-reseller-form-wrap button[type="submit"] {
    background-color: #548335 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    border-radius: 2px;
}

.find-reseller-form-wrap .formbuilder-button.button:hover,
.find-reseller-form-wrap button[type="submit"]:hover {
    background-color: #456b2a !important;
    color: #fff !important;
}

.find-reseller-modal-message {
    padding: 20px 35px 35px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.find-reseller-modal-message.message-success {
    color: #006400;
}

.find-reseller-modal-message.message-error {
    color: #b22222;
}

.find-reseller-form-wrap .formbuilder-loading.ajax-loading {
    display: block;
    min-height: 2rem;
    padding: 1rem 0;
}

.find-reseller-form-wrap .formbuilder-loading {
    display: none;
}

body.find-reseller-modal-open {
    overflow: hidden;
}

/* Button in green strip – match strip styling */
.block-static-block .find-reseller-trigger {
    white-space: nowrap;
    color: #548335;
    background: #fff;
    padding: 10px 20px;
    display: inline-block;
    font-size: 25px;
    border-radius: 10px !important;
    border: solid 1px #548335;
    font-family: 'inter';
    font-weight: 500;
    margin-top: 30px;    
}

.block-static-block .find-reseller-trigger:active,
.block-static-block .find-reseller-trigger:focus,
.block-static-block .find-reseller-trigger:hover {
    color: #548335;
    background-color: white !important;
    border: solid 1px #548335 !important;
}

/* Address field – stacked like admin: label above each input, even distribution */
.find-reseller-form-wrap .response-field-address .subtemplate-wrapper {
    display: block;
}

.find-reseller-form-wrap .response-field-address .subtemplate-wrapper > label {
    display: block;
    margin: 0 0 0.4rem 0;
    padding-bottom: 0;
    font-weight: 600;
    color: #333;
}

.find-reseller-form-wrap .response-field-address .subtemplate-wrapper > .row {
    margin: 0;
}

.find-reseller-form-wrap .response-field-address .subtemplate-wrapper > .row > .input-box {
    max-width: 100%;
    padding: 0;
}

/* Match spacing used between Company / Name / Email fields */
.find-reseller-form-wrap .response-field-address .subtemplate-wrapper > .row > .input-box > .row {
    margin: 0 0 1.25rem;
}

.find-reseller-form-wrap .response-field-address .subtemplate-wrapper > .row > .input-box > .row:last-of-type {
    margin-bottom: 0;
}

/* Kill Formbuilder .input-line clear/margin that inflated space under Address */
.find-reseller-form-wrap .response-field-address .input-line {
    clear: none;
    margin: 0 !important;
    padding: 0;
}

/* Street: full width; outer "Address" label is enough */
.find-reseller-form-wrap .response-field-address .input-line.col-sm-12 {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
}

.find-reseller-form-wrap .response-field-address .street {
    display: block;
    margin: 0;
    padding: 0;
}

.find-reseller-form-wrap .response-field-address .street label {
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
}

.find-reseller-form-wrap .response-field-address .street input {
    width: 100%;
    margin: 0;
}

/* Country + State / City + Zip rows: two equal columns with consistent gap */
.find-reseller-form-wrap .response-field-address .input-line:not(.col-sm-12) {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.find-reseller-form-wrap .response-field-address .input-line .country,
.find-reseller-form-wrap .response-field-address .input-line .state,
.find-reseller-form-wrap .response-field-address .input-line .city,
.find-reseller-form-wrap .response-field-address .input-line .zipcode {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
    float: none;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}

.find-reseller-form-wrap .response-field-address .country label,
.find-reseller-form-wrap .response-field-address .state label,
.find-reseller-form-wrap .response-field-address .city label,
.find-reseller-form-wrap .response-field-address .zipcode label {
    display: block;
    margin: 0 0 0.4rem 0;
    font-weight: 600;
    color: #333;
}

.find-reseller-form-wrap .response-field-address .country select,
.find-reseller-form-wrap .response-field-address .country input,
.find-reseller-form-wrap .response-field-address .state select,
.find-reseller-form-wrap .response-field-address .state input,
.find-reseller-form-wrap .response-field-address .city input,
.find-reseller-form-wrap .response-field-address .zipcode input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
