/* 
 Theme Name:     SSF
 Author:         Drayson Design
 Template:       Divi
 Version:        1.1
 Description:   A Child Theme built using the for the SSF project
*/

/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */

.tml-profile h3 {
    display: none;
}

.tml-profile .tml-form-table {
    display: none;
}

.et_pb_tax_title h1, .profile-heading h1 {
    background-color: rgba(255, 255, 255, .8);
    padding: 20px;
    display: inline-block;
}

.et_pb_tax_title, .profile-heading {
    text-align: center;
}

.ssf_santa_url a {
    color: #333;
}

.ssf_request_form textarea.ssf_textarea_med {
    min-height: 100px;
}

.ssf_letter_other_textarea,
.ssf_goal_other_textarea,
.ssf_interest_other_textarea,
.ssf_ach_other_textarea {
    margin-top: 1em;
}

.ssf_letter_other_textarea span,
.ssf_interest_other_textarea span,
.ssf_goal_other_textarea span,
.ssf_ach_other_textarea span {
    display: block;
    font-weight: bold;
}

.tml input[type="text"],
.tml input[type="password"],
.tml input[type="url"],
.tml input[type="text"].input,
.tml input[type="password"].input,
.tml input[type="url"].input {
    padding: 10px;
    font-size: 14px;
}

.ssf_santa_url {
    background-color: rgba(255, 255, 255, .8);
    padding: 10px 20px;
    display: inline-block;
    color: #333;
}

.ssf_request_form input[type=text], .ssf_request_form textarea {
    padding: .8em 1em;
    font-size: 14px;
    background-color: white;
    color: #333;
    min-width: 300px;
}

.ssf_request_form textarea {
    min-height: 140px;
    min-width: 100%;
}

.ssf_request_form .ui-button {
    min-width: 300px;
    padding: .8em 1em;
}

.ssf_request_section {
    margin-top: 20px;
    border-top: 1px solid #666;
    padding-top: 20px;
}

.ssf_request_section h2 {
    margin-top: 20px;
}

.ssf_request_form p {
    padding-bottom: 1em;
}

.ssf_required_field {
    display: inline-block;
    margin-left: 5px;
    color: red;
}

.ssf_field_errors {
    display: none;
    background-color: #FF0000;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.ssf_field_errors.ssf-not-valid {
    display: block;
}

.ssf_child_photo_label {
    color: white;
    background-color: #454545;
    display: inline-block;
    cursor: pointer;
    padding: .5em 1em;
}

.ssf_child_photo_label:focus,
.ssf_child_photo_label:hover {
    background-color: red;
}

.ssf_child_photo {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.ssf-not-valid {
    border-color: #FF0000 !important;
}

.ssf_child_photo_preview_container {
    display: none;
}

.ssf_child_photo_preview_container img {
    max-width: 200px;
}

.ssf-feedback {
    background-color: forestgreen;
}

.ssf_error_feedback, .ssf_request_errors {
    padding: 10px;
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.ssf-error, .ssf_request_errors {
    background-color: red;
}

/********************/

.ssf-custom-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    z-index: 1;
    top: 3px;
    background: url("/wp-content/themes/SSF/images/checkbox.png") no-repeat;
}

.ssf-custom-checkbox:hover {
    background: url("/wp-content/themes/SSF/images/checkbox-hover.png") no-repeat;
}

.ssf-custom-checkbox.selected {
    background: url("/wp-content/themes/SSF/images/checkbox-selected.png") no-repeat;
}

.ssf-custom-checkbox input[type="checkbox"] {
    margin: 0;
    position: absolute;
    z-index: 2;
    cursor: pointer;
    outline: none;
    opacity: 0;
    /* CSS hacks for older browsers */
    _noFocusLine: expression(this.hideFocus=true);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    -khtml-opacity: 0;
    -moz-opacity: 0;
}

/**********************/

.ssf_desktop {
    display: inline-block;
}

.ssf_mobile {
    display: none;
}

@media screen and (max-width: 500px) {
    .ssf_desktop {
        display: none;
    }

    .ssf_mobile {
        display: inline-block;
    }

    .ssf_request_form input[type=text], .ssf_request_form textarea {
        min-width: 100%;
    }

    .ssf_request_form .ui-button {
        min-width: 100%;
    }

    .ssf_request_form label {
        display: block;
    }

    .ssf_request_form h2 {
        font-size: 22px;
    }

    .ssf_request_form h1 {
        font-size: 24px;
    }

    .form-table .acf-field .acf-label, .form-table .acf-field .acf-input {
        float: left;
        width: 100% !important;
        padding: 0 0 10px 0 !important;
    }
}