/*
Theme Name: profilering
Theme URI: https://profilering.no
Description: Child theme for Hello Elementor
Template: hello-elementor
Version: 1.0.0
Text Domain: profilering.no
*/

.highlight {
    border-bottom: 3px solid #FFFD73;
    display: inline-block;
    line-height: 0.9;
}

.category-card .category-card-title::after {
	content: '';
	width: 20px;
	position: absolute;
	border-bottom: 2px solid var(--e-global-color-text);
	transition: all .6s ease;
}

.category-card:hover .category-card-title::after {
	width: 100%;
}

/*-------------------- CONTACT FORM START --------------------*/
input[type=file] {
  width: 100%;
  max-width: 100%;
  background: rgba(256, 256, 256, 0);
  color: rgba(0, 0, 0, 0) !important;;
  border-radius: 17px;
  border: 0;
}

input[type=file]::file-selector-button {
  margin-right: -100%;
  border: 1px solid rgba(0, 0, 0, 0) !important;;
  border-radius: 17px;
  background: rgba(0, 0, 0, 0) !important;
  padding: 15px;
  border-radius: 17px;
  color: rgba(0, 0, 0, 0) !important;;
  cursor: pointer;
  transition: background .2s ease-in-out;
}

#custom-cf.custom-cf {
	max-width: 532px;
}

.custom-cf textarea {
	resize: none;
	border: 1px solid rgba(255, 253, 115, 0.6) !important;
	border-radius: 18px;
	margin-top: 10px;
}
.custom-cf .elementor-field-type-upload {
	order: 6;
}
.custom-cf .elementor-field-type-upload label.elementor-field-label {
    position: absolute;
    border: 1px solid #FFFD73;
    padding: 11px;
    border-radius: 17px;
    width: 100%;
    text-align: center;
	max-width: 256px;
	font-size: 18px !important;
	font-weight: 700 !important;
	z-index: 99999;
}
.custom-cf .elementor-field-type-upload label.elementor-field-label:hover {
    background-color: #FFFD73;
	color: #001E1D !important;
}
.custom-cf input[type=file] {
    z-index: -1;
}
.custom-cf button {
	max-width: 256px;
}
.custom-cf .elementor-field-group.elementor-column.elementor-field-type-submit.e-form__buttons {
    align-items: center;
}
.custom-cf .cf_link {
	color: #FFFD73;
	text-decoration: underline;
}
.custom-cf .cf_link:hover {
	color: #FFFD73;
	text-decoration: underline;
}

.custom-cf .elementor-field-option {
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
	position: relative;
}

.custom-cf span.elementor-message.elementor-message-danger.elementor-help-inline.elementor-form-help-inline {
	position: absolute;
    min-width: 300px;
    top: 20px;
}

.custom-cf .elementor-field-option input[type=checkbox] {
	position: relative;
}


.custom-cf .elementor-field-option input[type=checkbox]:before {
    content: "";
    display: block;
    position: absolute;
    width: 17px;
    height: 17px;
    top: 0;
    left: 0;
	margin-bottom: 3px;
	margin-right: 5px;
	border: 1px solid #FFFD73;
    background-color: #000;
	cursor: pointer;
}

.custom-cf .elementor-field-option input[type=checkbox]:checked:after {
    content: "";
    display: block;
    width: 5px;
    height: 10px;
	border: solid #FFFD73;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
    left: 6px;
}

.custom-cf .elementor-field-option label {
	display: inline-block !important;
/* 	font-size: 15px !important; */
	padding-left: 10px;
	line-height: 1 !important;
}

/* .custom-cf input:-internal-autofill-selected {
    background-color: #0f0D19 !important;
    color: fieldtext #FFFD73;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
} */

.custom-cf .elementor-column.elementor-field-type-acceptance {
    position: relative;
    min-height: 1px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    align-content: center;
    justify-content: flex-end;
}
.custom-cf .elementor-column.elementor-field-type-acceptance .elementor-field-subgroup {
	max-width: 20px !important;
}
.custom-cf .elementor-column.elementor-field-type-acceptance label.elementor-field-label {
	padding: 5px 0 0 2px;
}
.elementor-field-type-recaptcha_v3 {
	display: none;
}

@media (max-width: 480px) {
	.custom-cf button#send-btn {
		min-width: 100%;
	}
	.custom-cf .elementor-form .elementor-field-type-upload.elementor-field-group {
		order: 0;
		margin-bottom: 30px;
	}
	.custom-cf .elementor-field-type-upload label.elementor-field-label {
		max-width: 450px;
		padding: 15px 0;
		width: 94%;
	}
	.custom-cf .elementor-field-option label {
		font-size: 15px !important;
	}
}
/*-------------------- CONTACT FORM END --------------------*/


.custom-mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background: #fff;
	box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	margin: 10px;
}

.menu-cat-title {
    font-size: 18px !important;
	line-height: 1 !important;
    margin-bottom: 10px;
    display: inline-block;
}

.menu-cat-title a {
    text-decoration: none;
    color: #000;
    border-bottom: 3px solid #FFFD73;
    padding-bottom: 2px;
}

.menu-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 15px;
}

.menu-products-list li {
    margin-bottom: 5px;
	line-height: 1;
}

.menu-products-list a {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.menu-products-list a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #444;
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.6s ease-out;
}

.menu-products-list a:hover::after {
    transform: scaleX(1);
}

.menu-column {
    padding: 10px;
    transition: background 0.5s ease;
    border-radius: 6px;
}

.menu-column:hover {
    background: #f2f2f2;
}

.header-search {
    width: 100px !important;
    transition: all 0.6s ease !important;
}
.header-search input {
    padding-left: 2.5rem !important;
}

.header-search:focus-within,
.header-search:has(.e-search-input:not(:placeholder-shown)) {
    width: 300px !important;
}
.header-search .e-search-form {
    width: 100%;
}

.header-search .e-search-input-wrapper {
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .custom-mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .custom-mega-menu-grid { grid-template-columns: 1fr; }
}