/* =================== COMMON SETTINGS FOR ALL POPUP-WINDOWS =================== */
.close-btn {
    position: absolute;
    top: 2px;
    right: 7px;
    background: none;
    border: none;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
}

.close-btn:hover {
    text-shadow: 0 0 0.50em #ffdea4, 0 0 0.50em #ffdea4, 0 0 0.50em #ddad5a;
    color: #fff;
}

.relativex {
    position: relative;
}

/* ======== Inställningar för Popup-fönster ======== */
.popupwindow {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0 15px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 11000;
}
.popupwindow.active {
  display: flex !important;
}

.contactcardwindow {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0 15px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 11000;
}
.contactcardwindow.active {
  display: flex !important;
}

/* ====================== PORTFOLIO WINDOW ====================== */
.portfoliowindow {
    display: flex;
    flex-direction: column;
    width: 700px;
    height: fit-content;
    z-index: 11001;
    color: #fff;
    background-color: rgba(0,0,0,0.3);
    box-shadow: 0 0 0.35em #ffdea4, 0 0 0.35em #ffdea4, 0 0 0.35em #ddad5a;
}

.portfolioform {   
    padding: 20px 40px 5px 40px;
    color: #fff;
    width: 100%;
    height: fit-content;
}

.portfolioform h1 {
    font-family: 'Orbitron', 'josefin sans', 'poppins';
    font-weight: 300;
    font-size: 33px;
    letter-spacing: 7px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
}

.portfolioform p {
    font-family: 'josefin sans', 'poppins';
    font-size: 22px;
    text-align: center;
}

.portfoliologin {
    padding: 5px 40px 10px 40px;
    margin-top: 10px;
    color: #fff;
    width: 100%;
    height: fit-content;
}

.portfoliologin h1 {
    font-family: 'Orbitron', 'josefin sans';
    font-weight: 300;
    font-size: 33px;
    letter-spacing: 5px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 0.35em #44e0b7, 0 0 0.50em #44e0b7, 0 0 0.50em #033629;
}

.portfoliologin p {
    font-family: 'josefin sans', 'poppins';
    font-size: 22px;
    text-align: center;
}

.knapp button {
    font-family: 'Orbitron', 'josefin sans';
    font-weight: 300;
    font-size: 25px;
}

.input-box1 {
    position: relative;
    width: 100%;
    height: 40px;
    font-weight: 600;
    border-bottom: 1px solid;
    border-color: #ddad5a;
    margin: 20px 0;
}

.input-box1 input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    color: #fff;
}

.input-box1 label {
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    font-family: 'josefin sans', 'poppins';
    font-size: 20px;
    color: #fff;
    pointer-events: none;
}
.input-box1 input:focus~label,
.input-box1 input:valid~label {
    top: -5px;
    text-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
}

.newaccbtn {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 1px solid;
    border-radius: 15px;
    font-size: 21px;
    color: #fff;
    text-transform: uppercase;
    margin: 10px 0px 20px 0px;
    background-color: transparent;
}

.shadow1 {
    border-color: #7ae7e7;
    box-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
}

.shadow2 {
    border-color: #44e0b7;
    box-shadow: 0 0 0.35em #44e0b7, 0 0 0.50em #44e0b7, 0 0 0.50em #033629;
}

.newaccbtn:hover {
    color: #fff;
    border-color: #ddad5a;
    text-shadow: 0 0 0.35em #ffdea4, 0 0 0.35em #ffdea4, 0 0 0.35em #ddad5a;
    box-shadow: 0 0 0.35em #ffdea4, 0 0 0.35em #ffdea4, 0 0 0.35em #ddad5a;
}

.shadow1:active {
    background: transparent;
    color: #fff;
    border-color: #7ae7e7;
    transform: translateY(4px);
    text-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
    box-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
}

.shadow2:active {
    background: transparent;
    color: #fff;
    border-color: #44e0b7;
    transform: translateY(4px);
    text-shadow: 0 0 0.35em #44e0b7, 0 0 0.50em #44e0b7, 0 0 0.50em #033629;
    box-shadow: 0 0 0.35em #44e0b7, 0 0 0.50em #44e0b7, 0 0 0.50em #033629;
}

.termsbox label {
    font-family: 'josefin sans', 'poppins';
    font-size: 22px;
    color: #fff;
    font-weight:bold;
}

.termsbox label input {
    accent-color: #6ae6e6;
}

.termsbtn {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid #ddad5a;
    border-radius: 10px;
    padding: 6px 3px 6px 3px;
    font-size: 21px;
    color: #fff;
}

.termsbtn:hover {
    color: #fff;
    text-shadow: 0 0 0.35em #ffdea4, 0 0 0.35em #ffdea4, 0 0 0.35em #ddad5a;
    box-shadow: 0 0 0.35em #ffdea4, 0 0 0.35em #ffdea4, 0 0 0.35em #ddad5a;
}

.termsbtn:active {
    color: #fff;
    border-color: #6ae6e6;
    transform: translateY(4px);
    background-color: transparent;
    text-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
    box-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
}

/* ====================== CONTACT CARD WINDOW ====================== */
.contact-modal {
    display: none;  /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    height: 100%;
    width: 100%;    
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Show modal when active */
.contact-modal.active {
    display: flex !important;
}

/* The actual card – size adapts to content */
.contact-card {
    position: relative;
    background-color: rgba(0,0,0,0.6);
    padding: 30px 40px;
    z-index: 11001;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    height: 400px;
    width: 475px;
    max-width: 90%;
    animation: fadeInScale 0.3s ease-out;
}

.minipadding {
    padding-top: 25px;
}

.contact-card {
    box-shadow: 0 0 0.50em #ffdea4, 0 0 0.50em #ffdea4, 0 0 0.50em #ddad5a;
}

.contact-card h2 {
    font-family: 'Orbitron', 'josefin sans';
    font-weight: 300;
    margin: 0 0 12px 0;
    font-size: 2.1rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
}

.contact-card .branches {
    margin: 0 0 24px 0;
    font-family: 'josefin sans', 'poppins';
    font-size: 1.4rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 0 0.50em #ffdea4, 0 0 0.50em #ffdea4, 0 0 0.50em #ddad5a;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-link {
    display: inline-block;
    padding: 12px 20px;
    background: transparent;
    font-family: 'josefin sans', 'poppins';
    font-size: 1.4rem;
    color: white;
    text-decoration: none;
    border-radius: 6px;    
    transition: background 0.3s;
    box-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
}

.contact-link:hover {
    text-shadow: 0 0 0.50em #ffdea4, 0 0 0.50em #ffdea4, 0 0 0.50em #ddad5a;
    box-shadow: 0 0 0.50em #ffdea4, 0 0 0.50em #ffdea4, 0 0 0.50em #ddad5a;
}

.contact-link:active {
    transform: translateY(5px);
    text-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
    box-shadow: 0 0 0.35em #7ae7e7, 0 0 0.35em #7ae7e7, 0 0 0.35em #1b2bae;
}

.contact-link.phone {
    background: transparent;
    box-shadow: 0 0 0.50em #44e0b7, 0 0 0.50em #44e0b7, 0 0 0.50em #033629;
}

.contact-link.phone:hover {
    text-shadow: 0 0 0.50em #ffdea4, 0 0 0.50em #ffdea4, 0 0 0.50em #ddad5a;
    box-shadow: 0 0 0.50em #ffdea4, 0 0 0.50em #ffdea4, 0 0 0.50em #ddad5a;
}

.contact-link.phone:active {
    transform: translateY(5px);
    text-shadow: 0 0 0.50em #44e0b7, 0 0 0.50em #44e0b7, 0 0 0.50em #033629;
    box-shadow: 0 0 0.50em #44e0b7, 0 0 0.50em #44e0b7, 0 0 0.50em #033629;
}

/* Small animation when card appears */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ====================== VILLKOR WINDOW ====================== */
