* {
    box-sizing: border-box;
}

body {
    font-family: 'Graphik', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 20px;
}

.hero {
    padding: 0px 0;
    text-align: left;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

#qualification {
    background: rgb(39, 38, 87);
    border-radius: 5px;
    padding: 60px;
    position: relative; /* Make qualification a positioning context for absolute positioning */
}

.logo {
    font-size: 2.5rem;
    color: #00c4b4;
    margin: 0;
}

.tagline {
    font-size: 2.2rem;
    font-weight: 300;
    color: #ffffff;
    margin: 10px 0;
}

.dark {
    color: #333;
}

.white {
    color: #fff;
}

.medium {
    font-size: 1.2em !important;
}

.highlight {
    margin: 0px !important;
    padding: 0px !important;
}

.flex {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin: 0 0;
    padding: 0 0;
}

.purple {
    background: rgb(39, 38, 87) !important;
}

.subtagline {
    font-size: 1rem;
    color: #d0d0d0;
    margin: 5px 0;
}

h1.tagline {
    font-size: 3.2rem;
    line-height: 3.6rem;
    font-weight: 300;
    color: #ffffff;
    margin: 10px 0;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 300;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

p {
    font-size: 1rem;
    color: #d0d0d0;
}

.form-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Align items at the top */
    justify-content: space-between;
    margin: 40px 0;
    gap: 20px;
}

.form-content {
    max-width: 600px;
    width: 100%;
    text-align: top;
}

.form-image {
    max-width: 350px;
    width: 100%;
    text-align: top;
    position: absolute; /* Position absolutely within #qualification */
    top: 60px; /* Align with the top padding of #qualification */
    right: 60px; /* Align with the right padding of #qualification */
}

.form-image img {
    width: 100%;
    height: auto;
    text-align: top;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.1rem;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea {
    height: 120px;
}

select {
    padding-right: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 9L2 5h8z"/></svg>') no-repeat right 15px center;
    background-size: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    line-height: 1.5;
    cursor: pointer;
    position: relative;
}

button {
    background-color: #00c4b4;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
}

button:hover {
    background-color: #00a89a;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.button-group button {
    flex: 1;
    min-width: 150px;
}

.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

.success {
    color: #2ecc71;
    font-size: 0.9rem;
    margin-top: 5px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00c4b4;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.intro {
    margin: 40px 0;
}

.intro .tagline {
    color: #333;
}

.intro .subtagline {
    color: #666;
}

.usp {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: left;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.usp h3 {
    color: #00c4b4;
}

.usp p {
    color: #666;
}

.notice {
    font-size: 0.9rem;
    color: #666;
    text-align: left;
    margin: 20px 0;
}

footer {
    background-color: #f5f7fa;
    padding: 20px 0;
    text-align: left;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0 0 0;
}

footer p {
    font-size: 0.9rem;
    color: #666;
}

/* Styles for the success message and button in signup-step */
.success-message {
  text-align: center;
  padding: 20px;
  color: #ffffff; /* White text to match the signup-step background */
}

.success-message h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ffffff; /* White to match the section */
}

.success-message p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #d0d0d0; /* Match the subtext color */
}

.telness-button {
  background-color: #00c4b4;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.telness-button:hover {
  background-color: #00a89a;
}

/* Form result styles */
.form-result.success {
    color: #2ecc71;
    font-size: 1rem;
    margin-top: 10px;
    animation: fadeIn 0.3s ease-in;
}

.form-result.error {
    color: #e74c3c;
    font-size: 1rem;
    margin-top: 10px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Abonnemangslista */
.offer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 0px;
}

.abonnemang {
    margin-top: 20px;
    background-color: #fff;
    padding: 20px 20px;
    border-radius: 5px;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.abonnemang h3 {
    margin: 0 0;
    font-size: 45px;
    font-weight: 300;
}

.abonnemang h4 {
    margin: 0 0;
}

.abonnemang ul {
    margin: 0 0;
    padding: 0 20px;
}

.abonnemang ul li {
    margin: 0 0;
}

.abonnemang img {
    max-width: 130px;
    margin-left: 23%;
    margin-right: 0;
    padding: 20px;
}

.abonnemang img.gif {
    margin-top: 30px;
    margin-bottom: 35px;
    margin-left: 25%;
}

.abonnemang button {
    margin-top: 20px;
}

/* Stilar för signup-step h3 och select */
#signup-step h3 {
    color: white;
}

#signup-step select {
    background-color: white;
}

/* Paketvisning i Signup Step */
.package {
    margin-top: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%); /* Subtle gradient background */
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Slightly stronger shadow for depth */
    margin-left: auto;
    margin-right: auto;
    color: #333;
    border: 1px solid #e0e0e0; /* Subtle border */
}

.package-header {
    margin-bottom: 10px;
    margin-left: -23px;
    margin-top: 0px;
    color: #FFF !important;
    background: #00c4b4;
    padding: 10px 25px;
    font-weight: 700;
    font-size: 1rem !important;
    display: inline-block; /* Make the background wrap the text only */
    line-height: normal; /* Reset line-height to prevent excessive vertical space */
}

.package-image {
        float: right;
        max-width: 200px;
        position: relative;
        top: -50px;
        right: 40px;
    }

.price {
    margin: 10px 0; /* Add spacing around the price */
    font-size: 1.2em;
    font-weight: 500;
    color: #333;
}

.package ul {
    background-color: transparent; /* Remove background to blend with gradient */
    padding: 0px 0px; /* Justerad padding */
    border-radius: 5px; /* Rundade hörn */
    margin: 15px 0; /* Utrymme runt listan */
    list-style: none; /* Remove default bullets */
}

.package ul li {
    margin: 8px 0; /* More space between list items */
    padding-left: 2.5rem; /* Space for the custom bullet */
    position: relative; /* Position for the ::before pseudo-element */
    font-size: 1rem;
    color: #333;
}

.package ul li::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: 0;
    width: 1.125rem;
    height: 1.125rem;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml;charset=UTF-8,%0A%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%2211.9258%22%20cy%3D%2212%22%20r%3D%2211%22%20fill%3D%22%23272657%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M7.92578%2012.4324L10.7591%2015L15.9258%209%22%20stroke%3D%22%23FFF0EA%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E");
}

.package p {
    color: #333;
    font-style: italic; /* Kursivera bottentexten */
    margin-top: 15px; /* Utrymme ovanför bottentexten */
    font-size: 0.95rem; /* Något mindre teckenstorlek */
}

/* Mobiljusteringar för paketbox och form-image */
@media (max-width: 768px) {
    select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 9L2 5h8z"/></svg>') no-repeat right 15px center;
        background-size: 12px;
        padding-right: 40px;
    }

    .form-image {
        display: none; /* Already hidden on mobile, but ensure it stays hidden */
    }
    .form-section {
        justify-content: center;
        margin: 40px 0;
    }
    .hero {
        padding: 10px 0;
    }
    .logo {
        margin: 0;
    }
    .form-content {
        max-width: 100%;
    }

    #qualification {
        padding: 30px;
    }
}

@media (max-width: 500px) {
    h1.tagline {
        font-size: 1.7rem;
        line-height: 2.0rem;
    }
    
    h2 {
        font-size: 1.4rem;
        line-height: 1.6rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    button {
        width: 100%;
    }

    .package {
        padding: 15px; /* Minskad padding på mobil */
    }

    .package-header {
        font-size: 1rem !important; /* Ensure font-size applies on mobile */
    }

    .package-image {
        display: none;
    }
}

/* Ensure bold text in qualification subtext */
#qualification-subtext strong {
    font-weight: bold;
}

/* Styles for the company details in result-step */
.company-details {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    color: #ffffff; /* White text to match the section */
}

.company-details p {
    margin: 5px 0; /* Space between lines */
    font-size: 1rem;
    color: #d0d0d0; /* Match the subtext color */
}

.company-details strong {
    color: #ffffff; /* White for the labels */
    font-weight: 600; /* Slightly bold for emphasis */
}

/* Style for the retryBtn (Gör ett nytt försök) */
#retryBtn {
    background-color: #A9A9A9; /* Grayish color */
}

#retryBtn:hover {
    background-color: #8C8C8C; /* Slightly darker gray on hover */
}

/* Hide qualification-headline only in signup-step */
#signup-step #qualification-headline {
    display: none;
}

/* Style for the Ändra links */
.company-details a {
    color: #00c4b4;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 5px;
    font-size: 0.9rem;
}

.company-details a:hover {
    color: #00a89a;
}