/* ei_contact_form.css */

/* --- GENERAL FORM RULES --- */
form.hollow-inputs-form {
    display:flex;
    flex-direction: column;
    gap:5px;
    position: relative;
}
form.hollow-inputs-form > div:not(.text-area-zone,.reqd-input) {
    border-bottom: 1px solid white;
    margin-bottom:25px;
}
.reqd-input {
    font-size: 90%;
    font-style: italic;
}
form.hollow-inputs-form input {
    border:none;
    outline:0px;
    width: 100%;
    display:block;
    background-color: transparent;
    color:white;
}
form.hollow-inputs-form textarea::placeholder,
form.hollow-inputs-form input::placeholder {
    opacity:1; /* not effective on webkit */
    color:white; /* use this for webkit */
}
form.hollow-inputs-form textarea:focus::placeholder,
form.hollow-inputs-form input:focus::placeholder {
    opacity: 0;
}

/* direction given to not put red outlines on inputs with errors */
form.hollow-inputs-form .bad_value.not,
form.hollow-inputs-form .error.not {
    outline:1px solid red;
}
form input,
form textarea {
    display: block;
    width:100%;
}
.contact-text {
    flex-grow:1;
    min-height:100px;
}

/* form column conditional display */
left-column.post-sent .pre-send-message,
left-column.post-sent .self-drawn-arrow,
left-column:not(.post-sent) .post-send-message,
left-column.post-sent + right-column {
    display:none;
}
left-column.post-sent {
    grid-column:span 2;
    padding: 0px;
    /* center content */
    display: flex;
    justify-content: center;
    align-items: center;
}

.fold-up {
    background-color: white;
    position: relative;
}
.fold-up::before {
    content:'';
    left:calc(50% - 6px);
    border:6px solid transparent;
    border-bottom-color:white;
    position: absolute;
    top:-12px;
}
.fold-up button {
    border:0px;
    display: block;
    width: 100%;
    background-color: transparent;
    padding:5px;
    color:inherit;
}

.text-area-zone {
    overflow: hidden;
    padding:0px 2px;
    background-color:white;
    display:flex;
    flex-direction: column;
    height:0px;
    position: absolute;
    left:0px;
    right:0px;
    bottom:0px;
    transition: all 500ms ease-in-out;
}
.text-area-zone.show {
    height:100%;
    padding:2px;
}

.char-counter::before {
    content:attr(data-characters);
    position: absolute;
    right:0px;
    top:0px;
}
.char-counter.near-full::before {
    color:red;
}
/* prevent vertical overlap of label with input length counter */
@media only screen and (max-width:650px) {
    .char-counter::before {
        top:1em;
    }
    #wcwd-label {
        margin-bottom:1em;
    }
}

/* submit button rules */
.submit-btn-row {
    display:flex;
    justify-content: center;
}
.submit-btn:disabled {
    background-color:lightgray;
    border-color:lightgray;
}
.submit-btn {
    /* margin:10px; */
    display:block;
    font-size:20px;
    background-color:var(--blue-text);
    border:1px solid var(--blue-text);
    color:white;
    text-transform: uppercase;
}

.submit_result {
    padding:5px 0px;
    text-align: center;
}
.submit_result:not(.show) {
    display:none;
}

form-error {
    display:block;
    background-color: white;
    color:red;
    text-align: center;
    padding:5px;
    border-radius: 15px;
    position: absolute;
    width:210px;
    bottom:80px;
    left:50%;
    translate: -50%;
    z-index: 10;
}
form-error::after {
    content:'';
    left:calc(50% - 6px);
    border:6px solid transparent;
    border-top-color:white;
    position: absolute;
    bottom: -12px;
}
form-error:not(.show) {
    display:none;
}
.text-area-zone.show + form-error {
    outline: 1px solid red;
}
.text-area-zone.show + form-error::after {
    border-top-color:red;
}
i.form-alert-icon {
    display:block;
}

/* special rules for newsroom page form */
media-relations-form:not(.post-sent) .post-submit-message,
media-relations-form.post-sent .hide-when-sent {
    display: none;
}
media-relations-form.post-sent .submit_result {
    display: block;
}
/* rules for media-relations-form disabled in ei_core.css */

.media-relations-form-panel form.hollow-inputs-form input {
    color:black;
}
.media-relations-form-panel form.hollow-inputs-form > div:not(.g-recaptcha,.select-row,.reqd-input,.submit-btn-row) {
    border-bottom-color:black;
}
.media-relations-form-panel form.hollow-inputs-form > div.g-recaptcha,
.media-relations-form-panel form.hollow-inputs-form > div.submit-btn-row {
    margin-bottom:0px;
}
.media-relations-form-panel form.hollow-inputs-form textarea::placeholder,
.media-relations-form-panel form.hollow-inputs-form input::placeholder {
    opacity:1; /* not effective on webkit */
    color:black; /* use this for webkit */
}

/* == CONTACT FORM panel == */
.contact-us-panel {
    background-color:#399371;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url('/assets/images/gr_contactBG.jpg');
    position: relative;
    /* color:white; */
    /* easier to adjust this value for multiple places via custom property */
    --left-column-padding:80px;
}
@media only screen and (min-width:1020.1px) {
    /* only do 'grid' with 2-col at desktop window width */
    .contact-us-panel .general-container {
        display:grid; /* grid needs to be on the content governor element */
        grid-template-columns: 50% 50%;
    }
    /* only need right-side spacing when rendered as row */
    .contact-us-panel left-column {
        padding-right: var(--left-column-padding);
    }
}

@media only screen and (max-width:768px) {
    /* conditional content stacking */
    .column-on-mobile {
        display:flex;
        flex-direction: column;
        align-items: center;
    }
}

.contact-form-flag {
    width:auto;
    height:30px;
    margin-right:5px;
}

/* fancy offset effect for contact form/column */
.not .contact-us-panel right-column::before {
	content: '';
	position: absolute;
	width: 100%;
	background-image: linear-gradient(to right,#87BE49,#28A8DF);
	border-radius: 10px;
	translate: 15px 15px;
	height: calc(100% - 15px);
}
.contact-us-panel right-column form {
    background:rgba(255,255,255,0.85);
    border-radius: 10px;
    padding:20px; /* padding all */
}

.contact-us-panel a:link,
.contact-us-panel a:visited,
.contact-us-panel a:hover,
.contact-us-panel a:active {
    color:inherit;
}
.contact-us-panel left-column {
    position: relative;
    margin-top: 20px;
}
.contact-us-panel right-column {
    position: relative;
    /* padding-top: max(10px,1.5vw); */
}

.contact-us-panel .large-text {
    font-size:max(3.3vw,22px); /* 24px causes text-wrap at < 376px */
    line-height: 1.25;
    font-weight: bold;
}
.contact-us-panel .medium-text {
    font-size: 17px;
    line-height: 1.75;
}
@media only screen and (max-width:852px) {
    .contact-us-panel .medium-text {
        line-height: 1.5;
    }
}
@media only screen and (max-width:750.1px) {
    .text-column.medium-text {
        font-size:20px;
    }
}
@media only screen and (max-width:650px) {
    .post-send-message .medium-text br {
        display: none; /* skip break, allow natural flow */
    }
}

.animated-arrow {
    position: relative;
    display: flex;
    gap:15px;
}
.thin-arrow {
    display:block;
    /* height:max(4.25vw,50px); */
    margin-right:-30px;
    /* margin-top:-15px; */
    transition: clip-path 1s linear;
    clip-path:polygon(0% 0%, 0% 100%, 0% 100%, 0% 0%);
	/* position: absolute;
	right: 30px;
	top: 50%;
	translate: 0px -50%; */
	/* height: 3.3vw; */
	flex-grow:1;
    /* outline:1px solid pink; */
}
.thin-arrow.show {
    clip-path:polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
}
.vertical-center-line {
    position:absolute;
    top:50%;
    left:0px;
    width:100px;
}
@media only screen and (max-width:650px) {
    .thin-arrow {
        display:none;
    }
}

/* .pop-link - declared/defined in ei_core.css */
