
/* NEWSLETTER SECTION */

textarea { 
	resize: none; 
	outline: none;
	border: none;
	background-color: transparent;
	box-shadow: none;
	box-sizing: border-box;
	overflow: hidden;
	width: 100%;
	height: 100%;
}

.notch.news-notch {
	background: var(--color-dark-sand);
}

.newsletter .content, .notch.news-notch .notch-left, .notch.news-notch .notch-right {
	background: var(--color-sand);
}

.notch.news-notch .notch-center svg path {
	fill: var(--color-sand);
}

.newsletter .content {
    position: relative;
}

.newsletter .grid {
    position: sticky;
    top: 0;
    z-index: 1;
	display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1.5vw var(--grid-gap-x);
	padding: var(--section-padding-y) var(--spacing-wrapper);
}

.new1 {
    grid-column: span 4 / span 4;
	justify-content: space-between;
}

.new2 {
    grid-column: span 4 / span 4;
    grid-row-start: 2;
	justify-content: space-between;
}

.new3 {
    grid-column: span 4 / span 4;
    grid-row-start: 3;
	text-align: center;
}

.new4 {
    grid-column: span 3 / span 3;
    grid-row-start: 4;
}

.new5 {
    grid-column-start: 4;
    grid-row-start: 4;
	align-content: flex-end;
}

.new5 p {
	margin: 0;
	text-align: right;
	font-size: clamp(12px, 0.9vw, 16px);
	font-weight: 500;
	line-height: clamp(14px, 1vw, 19px);
	letter-spacing: clamp(-0.16px, -0.016vw, 0px);
	text-transform: uppercase;
}

.newsletter .wrapper {
    padding: var(--section-padding-y) 0 var(--section-padding-y-md);
}

.newsletter-form {
    position: relative;
    z-index: 2;
	width: 33.33%;
    min-width: 480px;
    max-height: 86vh;
	justify-self: center;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.newsletter video {
	width: 100%;
	height: auto;
	aspect-ratio: 640 / 456;
	object-fit: cover;
	object-position: center;
}

.newsletter-header {
	border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
	aspect-ratio: 640 / 456;
	background-color: var(--color-orange);
	position: relative;
	overflow: hidden;
}

.newsletter-header .sml-text {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 2.8%;
}

.sml-text p {
	margin: 0;
	font-size: clamp(12px, 0.9vw, 16px);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: var(--color-sand);
}

.sml-text svg {
	width: clamp(12px, 0.9vw, 16px);
	height: clamp(12px, 0.9vw, 16px);
}

.newsletter-body {
	border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
	background-color: var(--color-orange);
	padding: 4% 6.25%;
}

.newsletter-body h3, .newsletter-body p {
	margin: 0;
	color: var(--color-sand);
}

.newsletter-body h3 {
	font-size: clamp(24px, 1.8vw, 34.22px);
	font-style: normal;
	font-weight: 400;
	line-height: 1.052;
	letter-spacing: clamp(0, 0.02vw, 0.274px);
	margin-bottom: clamp(16px, 1.2vw, 20px);
    text-wrap: balance;
}

.newsletter-body .subtitle {
    font-size: clamp(16px, 1.3vw, 22px);
	font-weight: 400;
	line-height: 1.27;
    margin-bottom: clamp(24px, 1.5vw, 30px);
    text-wrap: balance;
}

.newsletter-body .disclaimer {
    font-size: 16px;
	font-weight: 400;
	line-height: 1.31;
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.form-group-checkbox .disclaimer {
    color: var(--color-sand);
    margin-top: 0;
}

.form-group-checkbox input[type="checkbox"] {
    accent-color: var(--color-dark-sand);
    margin-top: 4px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.newsletter form .parent {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.newsletter .open-news form .parent {
    grid-template-rows: repeat(4, 1fr);
}


.newsletter form .div3 {
    grid-column-start: 1;
    grid-row-start: 2;
}

.newsletter form .div4 {
    grid-column-start: 2;
    grid-row-start: 2;
}

.newsletter form .div5 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-column-start: 1;
    grid-row-start: 3;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
    display: none;
}

.newsletter .open-news form .div5 {
    max-height: 100%;
    display: block;
}

.newsletter form .div6 {
    grid-row-start: 2;
    align-content: flex-end;
}

.newsletter .open-news form .div6 {
    grid-row-start: 4;
}

.newsletter form .form-group {
    width: 100%;
    height: 100%;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-sand);
    color: var(--color-dark-sand);
    border-radius: 182.694px;
}

.newsletter form .div5 .form-group {
    border-radius: 15px;
}

.newsletter form .form-group input,
.newsletter form .form-group select {
    flex: 1;
}

.newsletter form .form-group-select {
    position: relative;
}

.newsletter form .form-group-select::after {
    content: '';
    position: absolute;
    right: 10%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-dark-sand);
    border-bottom: 2px solid var(--color-dark-sand);
    transform: rotate(45deg);
    pointer-events: none;
}

.newsletter form .form-group-select.company-type-selector[data-open="true"]::after {
    transform: rotate(-135deg);
}

/* COMPANY TYPE CUSTOM DROPDOWN */

.company-type-selector {
    position: relative;
}

.company-type-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--color-dark-sand);
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.company-type-text {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
}

.company-type-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: clamp(4px, 0.3vw, 6px);
    background-color: var(--color-sand);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform-origin: top;
    transition: max-height 0.15s ease-out, opacity 0.15s ease-out, visibility 0.15s ease-out;
    z-index: 5;
}

.company-type-selector[data-open="true"] .company-type-dropdown {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
}

.company-type-option {
    width: 100%;
    display: flex;
    align-items: center;
    padding: clamp(8px, 0.6vw, 12px) clamp(16px, 1.2vw, 24px);
    background: transparent;
    border: none;
    color: var(--color-dark-sand);
    font-size: clamp(12px, 0.9vw, 16px);
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease-out;
}

.company-type-option:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.company-type-option[data-selected="true"] {
    background-color: rgba(0, 0, 0, 0.06);
    font-weight: 500;
}

.newsletter form .form-submit {
    position: relative;
}

.newsletter form .form-submit::after {
    content: '';
    background-image: url('../../images/patch.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: -46%;
    width: clamp(70px, 4.7vw, 90px);
    height: clamp(70px, 4.7vw, 90px);
    transition: background-image 0.15s ease-out;
}

form input {
    width: 100%;
}

form input, form button, textarea {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-dark-sand);
}

form img {
    flex-shrink: 0;
    width: clamp(16px, 1.3vw, 20px);
    height: clamp(16px, 1.3vw, 20px);
}

.form-submit button {
    background-color: var(--color-text-primary);
    padding: clamp(12px, 0.83vw, 16px) clamp(18px, 1.25vw, 24px);
    color: var(--color-sand);
    font-size: clamp(12px, 0.77vw, 14.889px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.298px;
    text-transform: uppercase;
    border-radius: clamp(40px, 2.5vw, 48px);
    z-index: 2;
    position: relative;
    transition: background-color 0.15s ease-out;
}

.newsletter form .form-submit:hover button {
    background-color: var(--color-dark-sand);
}
.newsletter form .form-submit:hover::after {
    background-image: url('../../images/patch-hover.svg');
}

@media (max-width: 1240px) {
    .newsletter-body .disclaimer {
        font-size: 14px;
    }
} 

@media (max-width: 768px) {
    .newsletter-form {
        min-width: 300px;
        width: 88%;
        max-height: unset;
    }
    .newsletter form .form-submit {
        right: -4%;
    }
    .form-submit button {
        padding: 14px 18px;
    }
    .newsletter .grid .h2 {
        font-size: var(--font-size-heading-h3);
        line-height: 1;
        letter-spacing: var(--letter-spacing-heading-h3);
    }
    .newsletter .grid {
        grid-template-rows: repeat(4, auto);
    }
}

@media (max-width: 500px) {
    .newsletter form .form-submit {
        right: 0;
    }
    .newsletter-form {
        width: 100%;
    }
    .newsletter form .form-submit::after {
        display: none;
    }
    .newsletter .open-news form .parent {
        grid-template-rows: repeat(7, 1fr);
    }
    .newsletter .open-news form .parent > div {
        grid-column: span 3 / span 3;
    }
    .newsletter .open-news form .parent .div2 {
        grid-row-start: 2;
    }
    .newsletter .open-news form .parent .div3 {
        grid-row-start: 3;
    }
    .newsletter .open-news form .parent .div4 {
        grid-row-start: 4;
    }
    .newsletter .open-news form .parent .div5 {
        grid-row-start: 5;
    }
    .newsletter .disclaimer-mobile {
        grid-row-start: 7;
    }
    .newsletter .open-news form .parent .div6 {
        grid-row-start: 8;
        justify-items: center;
    }
    .newsletter form .form-group-select::after {
        right: 24px;
    }
}