/* --------------------------------------------------------------------------
 * SIAE common forms
 * Pages:
 * 890 Worldwide Contacts
 * 892 Careers
 * 895 Contact Us
 * 897 Manufacturing Contact Form
 * 899 Become Partner
 * -------------------------------------------------------------------------- */

body.page-id-890 .site-content,
body.page-id-892 .site-content,
body.page-id-895 .site-content,
body.page-id-897 .site-content,
body.page-id-899 .site-content {
    background: #fff;
}

body.page-id-890 .site-content > .ast-container,
body.page-id-892 .site-content > .ast-container,
body.page-id-895 .site-content > .ast-container,
body.page-id-897 .site-content > .ast-container,
body.page-id-899 .site-content > .ast-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

body.page-id-890 article.ast-article-single,
body.page-id-892 article.ast-article-single,
body.page-id-895 article.ast-article-single,
body.page-id-897 article.ast-article-single,
body.page-id-899 article.ast-article-single {
    padding: 0;
    background: transparent;
}

/* Title band */
body.page-id-890 .entry-header,
body.page-id-892 .entry-header,
body.page-id-895 .entry-header,
body.page-id-897 .entry-header,
body.page-id-899 .entry-header {
    margin: 0 0 30px;
    padding: 22px 24px;
    background-image: url('/wp-content/uploads/joomla/images/Titles/background.jpg');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
}

body.page-id-890 .entry-header .entry-title,
body.page-id-892 .entry-header .entry-title,
body.page-id-895 .entry-header .entry-title,
body.page-id-897 .entry-header .entry-title,
body.page-id-899 .entry-header .entry-title {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
    color: #fff;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}

/* Form area */
body.page-id-890 .entry-content,
body.page-id-892 .entry-content,
body.page-id-895 .entry-content,
body.page-id-897 .entry-content,
body.page-id-899 .entry-content {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 72px;
}

.siae-contact-form {
    font-family: "Open Sans", Arial, sans-serif;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.siae-contact-form h3 {
    margin: 0 0 14px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.siae-contact-form > p:first-of-type {
    margin: 0 0 34px;
}

.siae-contact-form > p {
    margin: 0 0 14px;
}

.siae-contact-form br {
    display: none;
}

.siae-contact-form label {
    display: block;
    color: #444;
    font-size: 14px;
    font-weight: 600;
}

.siae-contact-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 4px;
}

.siae-contact-form input[type="text"],
.siae-contact-form input[type="email"],
.siae-contact-form input[type="tel"],
.siae-contact-form input[type="url"],
.siae-contact-form input[type="number"],
.siae-contact-form select,
.siae-contact-form textarea {
    width: 100%;
    max-width: none;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    background: #fff;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    box-shadow: none;
}

.siae-contact-form textarea {
    min-height: 100px;
    height: 100px;
    resize: vertical;
}

.siae-contact-form input:focus,
.siae-contact-form select:focus,
.siae-contact-form textarea:focus {
    border-color: #008ac9;
    outline: none;
}

/* Terms */
.siae-contact-form .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
}

.siae-contact-form .wpcf7-acceptance input[type="checkbox"] {
    margin: 3px 0 0;
}

.siae-contact-form .wpcf7-acceptance a {
    color: #008ac9;
}

/* Human verification */
.siae-contact-form .wpcf7-quiz-label {
    display: inline-block;
    margin-bottom: 6px;
}

/* Submit */
.siae-contact-form input[type="submit"] {
    min-width: 92px;
    padding: 10px 22px;
    border: 0;
    border-radius: 2px;
    background: #5cb85c;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.siae-contact-form input[type="submit"]:hover,
.siae-contact-form input[type="submit"]:focus {
    background: #4cae4c;
}

.siae-contact-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 13px;
}

body.page-id-890 .wpcf7-response-output,
body.page-id-892 .wpcf7-response-output,
body.page-id-895 .wpcf7-response-output,
body.page-id-897 .wpcf7-response-output,
body.page-id-899 .wpcf7-response-output {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 767px) {
    body.page-id-890 .entry-header,
    body.page-id-892 .entry-header,
    body.page-id-895 .entry-header,
    body.page-id-897 .entry-header,
    body.page-id-899 .entry-header {
        margin-bottom: 30px;
        padding: 22px 18px;
    }

    body.page-id-890 .entry-header .entry-title,
    body.page-id-892 .entry-header .entry-title,
    body.page-id-895 .entry-header .entry-title,
    body.page-id-897 .entry-header .entry-title,
    body.page-id-899 .entry-header .entry-title {
        width: 100%;
        font-size: 25px;
    }

    body.page-id-890 .entry-content,
    body.page-id-892 .entry-content,
    body.page-id-895 .entry-content,
    body.page-id-897 .entry-content,
    body.page-id-899 .entry-content {
        width: calc(100% - 36px);
        padding-bottom: 48px;
    }

    .siae-contact-form h3 {
        font-size: 17px;
    }
}

/* --------------------------------------------------------------------------
 * Careers - specific elements
 * -------------------------------------------------------------------------- */

body.page-id-892 .siae-form-intro {
    margin-bottom: 42px;
}

body.page-id-892 .siae-form-intro p {
    max-width: 820px;
    margin: 0 auto 26px;
    text-align: center;
    color: #777;
    line-height: 1.55;
}

body.page-id-892 .siae-form-intro h3 {
    margin: 0 0 24px;
    color: #3f4b4f;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

body.page-id-892 .siae-form-intro h3:first-of-type {
    text-align: center;
}

body.page-id-892 .siae-form-intro h3:last-of-type {
    margin-bottom: 0;
    text-align: left;
}

body.page-id-892 .siae-contact-form input[type="file"] {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    background: #fff;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    body.page-id-892 .siae-form-intro {
        margin-bottom: 32px;
    }

    body.page-id-892 .siae-form-intro h3 {
        font-size: 16px;
    }
}

/* --------------------------------------------------------------------------
 * Become Partner - specific elements
 * -------------------------------------------------------------------------- */

body.page-id-899 .siae-partner-intro {
    margin: 0 0 20px;
    text-align: center;
}

body.page-id-899 .siae-partner-intro h2 {
    margin: 0 0 12px;
    color: #3f4b4f;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

body.page-id-899 .siae-partner-intro h2::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin: 10px auto 0;
    background: #20b6dc;
}

body.page-id-899 .siae-partner-intro p {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

body.page-id-899 .siae-become-partner h3 {
    margin: 18px 0 10px;
    padding-top: 10px;
    border-top: 1px solid #ececec;
    font-size: 15px;
}

body.page-id-899 .siae-become-partner h3:first-of-type {
    border-top: 0;
    padding-top: 0;
}

body.page-id-899 .siae-partner-grid {
    display: grid;
    gap: 10px 14px;
}

body.page-id-899 .siae-partner-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-id-899 .siae-partner-grid--3 {
    grid-template-columns: 1.1fr 1fr .8fr;
}

body.page-id-899 .siae-partner-grid__full {
    grid-column: 1 / -1;
}

body.page-id-899 .siae-become-partner input[type="number"] {
    max-width: 160px;
}

body.page-id-899 .siae-become-partner .wpcf7-checkbox,
body.page-id-899 .siae-become-partner .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    align-items: center;
}

body.page-id-899 .siae-become-partner .wpcf7-list-item {
    margin: 0;
}

body.page-id-899 .siae-become-partner .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-weight: 400;
}

body.page-id-899 .siae-become-partner input[type="checkbox"],
body.page-id-899 .siae-become-partner input[type="radio"] {
    margin: 0;
}

@media (max-width: 767px) {
    body.page-id-899 .siae-partner-grid--2,
    body.page-id-899 .siae-partner-grid--3 {
        grid-template-columns: 1fr;
    }

    body.page-id-899 .siae-partner-grid__full {
        grid-column: auto;
    }

    body.page-id-899 .siae-partner-intro h2 {
        font-size: 19px;
    }
}

/* CF7 wraps grid labels in paragraphs: make full-width rows span the grid */
body.page-id-899 .siae-partner-grid > p:has(> label.siae-partner-grid__full) {
    grid-column: 1 / -1;
}
