/* <---------- GLOBAL SETTINGS ----------> */

*, *:before, *:after {
	box-sizing: border-box;
}

/* <---------- CORE STYLES ----------> */
body {
    background-color: #eee;
    --def: black; 	
	--inv: gray;
	width: 100%;
}

body, h1, p {
    font-family: "Helvetica Neue", "Segoe UI", Segoe, Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: normal;
    margin: 0;
    padding: 0;
    text-align: center;
}

.container {
    margin-left:    auto;
    margin-right:    auto;
    margin-top: 177px;
    max-width: 1170px;
    padding-right: 15px;
    padding-left: 15px;
    border-color: pink;
}

.row:before, .row:after {
    display: table;
    content: " ";
}

.content {
    font-size: 21px;
    /*font-size: 5vw;*/ /* This works on mobil, but not in browser */
    font-weight: 200;
    margin-bottom: 20px;
}

p {
    margin: 0 0 10px;
}

a {
    text-decoration: none;
    font-family: "Helvetica Neue", "Segoe UI", Segoe, Helvetica, Arial, "Lucida Grande", sans-serif;
    font-size: 21px;
    font-weight: 200;
    margin-bottom: 20px;
    color: #160f0f;
}

.request-consultation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
    margin-bottom: 50px;
}

div {margin-bottom: 3rem;}


/* <---------- BASE BUTTON STYLING (For both buttons) ----------> */

.button-base {	
    display: inline-block;
	position: relative;	
	padding: 1.4rem 4.2rem;
	padding-right: 3.1rem;
	color: var(--inv);
	transition: all 500ms cubic-bezier(0.77, 0, 0.175, 1);	
	cursor: pointer;
	user-select: none;
    font-family: inherit;
    font-size: 21px;
    font-weight: 200;
    /*margin-bottom: 0;*/
    border: none;
    background: transparent;
    /*letter-spacing: 1px;*/
}

/* Pseudo-elements for the effect */
.button-base:before, .button-base:after {
	content: '';
	position: absolute;	
	transition: inherit;
	z-index: -1;
}

/* <---------- Hover effects ----------> */
.button-base:hover {
	color: var(--def);
	transition-delay: .5s;
}

.button-base:hover:before {
	transition-delay: 0s;
}

.button-base:hover:after {
	background: var(--inv);
	transition-delay: .35s;
}

/* <---------- From Left Effect (TODO: Reuse for both buttons) ----------> */
.button-effect:before,
.button-effect:after {
	top: 0;
	width: 0;
	height: 100%;
}

.button-effect:before {
	right: 0;
	border: 1px solid var(--inv);
	border-left: 0;
	border-right: 0;	
}

.button-effect:after {
	left: 0;
}

.button-effect:hover:before,
.button-effect:hover:after {
	width: 100%;
}

/* Apply base and effect to both primary button classes */
/* .request-consultation-button, */
/* .form-submit-button-effect { */
    /* Inherit base styles and the button-effect effect */
/* } */

/* <---------- MODAL STYLES ----------> */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px); 
    overflow-y: scroll;
}

.modal-content {
    background-color: #eee; 
    padding: 30px;
    border: none; 
    width: 90%;
    max-width: 450px; 
    border-radius: 0; 
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); 
    animation-name: animatetop;
    animation-duration: 0.4s;
}

/* <---------- H3 Heading for Consultation Request ----------> */
.modal-content h3 {
    font-size: 24px;
    font-weight: 300; 
    margin-bottom: 25px;
    color: #160f0f;
    /*text-transform: uppercase;*/
    letter-spacing: 2px;
}

/* <---------- Close Button ----------> */
.close-button {
    color: #160f0f; 
    float: right;
    font-size: 32px; 
    font-weight: 200; 
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: #333; 
    text-decoration: none;
}


/* <---------- FORM INPUT STYLES ----------> */
.form-group {
    margin-bottom: 20px; 
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px; 
    font-weight: 300; 
    font-size: 18px; 
    color: #160f0f;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px; 
    border: 1px solid #aaa; 
    border-radius: 0; 
    font-size: 18px; 
    font-family: "Helvetica Neue", sans-serif; 
    font-weight: 200; 
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #160f0f; 
    outline: none;
}

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


.form-submit-button-effect {
    width: 100%;
    margin-top: 20px; 
    padding: 1rem 1rem;
}


.form-submit-button-effect:hover {
    color: #160f0f; /* Change text to black on hover */
}


/* <---------- Animation ----------> */
@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}