.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    opacity: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #F44336;
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Formulär Stilar */
.anmalningsformular {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-field {
    flex: 1;
    margin-right: 10px;
}

.form-field:last-child {
    margin-right: 0;
}

.form-field.full-width {
    width: 100%;
}

.form-field.half-width {
    width: calc(50% - 5px);
}

.anmalningsformular label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.anmalningsformular input[type="text"],
.anmalningsformular input[type="email"],
.anmalningsformular input[type="tel"],
.anmalningsformular select,
.anmalningsformular textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.anmalningsformular textarea {
    height: 100px;
}

.submit-btn-container {
    text-align: right;
    margin-top: 20px;
}

.submit-btn {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background-color: #005177;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn .button-text {
    transition: all 0.3s ease;
}

.submit-btn .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.submit-btn .loader:after {
    content: " ";
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: loader 1.2s linear infinite;
}

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

/* Stilar för checkboxar */
.anmalningsformular input[type="checkbox"] {
    display: none;
}

.anmalningsformular input[type="checkbox"] + label:before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #0073aa;
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

.anmalningsformular input[type="checkbox"]:checked + label:before {
    background-color: #0073aa;
    border-color: #0073aa;
}

.anmalningsformular input[type="checkbox"] + label {
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
}

/* Responsiv design */
@media (max-width: 600px) {
    .form-field.half-width {
        width: 100%;
        margin-right: 0;
    }

    .form-row {
        flex-direction: column;
    }

    .submit-btn-container {
        text-align: center;
    }
}

/* Divi-specifika stilar */
.et_pb_module .course-form {
    max-width: 100%;
    margin: 0 auto;
}

.et_pb_module .anmalningsformular {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.et_pb_module .form-row {
    margin-bottom: 20px;
}

.et_pb_module .form-field label {
    font-weight: 600;
    color: #333;
}

.et_pb_module .form-field input[type="text"],
.et_pb_module .form-field input[type="email"],
.et_pb_module .form-field input[type="tel"],
.et_pb_module .form-field select,
.et_pb_module .form-field textarea {
    border: 1px solid #bbb;
    color: #4e4e4e;
    background-color: #fff;
    transition: all 0.3s ease;
}

.et_pb_module .form-field input[type="text"]:focus,
.et_pb_module .form-field input[type="email"]:focus,
.et_pb_module .form-field input[type="tel"]:focus,
.et_pb_module .form-field select:focus,
.et_pb_module .form-field textarea:focus {
    border-color: #2ea3f2;
    box-shadow: 0 0 5px rgba(46, 163, 242, 0.3);
}

.et_pb_module .submit-btn {
    background-color: #2ea3f2;
    color: #ffffff;
    border: 2px solid #2ea3f2;
    border-radius: 3px;
    font-size: 20px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.2s ease;
}

.et_pb_module .submit-btn:hover {
    background-color: #1e8de0;
    border-color: #1e8de0;
}

.et_pb_module .form-message {
    margin-top: 30px;
    font-size: 18px;
}

.et_pb_module .success-message {
    background-color: #e0f3e9;
    color: #1eaf69;
    border-color: #1eaf69;
}

.et_pb_module .error-message {
    background-color: #fae6e6;
    color: #d64242;
    border-color: #d64242;
}

@media (max-width: 980px) {
    .et_pb_module .form-field.half-width {
        width: 100%;
        margin-right: 0;
    }

    .et_pb_module .form-row {
        flex-direction: column;
    }

    .et_pb_module .submit-btn-container {
        text-align: center;
    }
}

.et-fb-root-ancestor .course-form {
    pointer-events: none;
    opacity: 0.7;
}

.et-fb-root-ancestor .course-form::after {
    content: "Kursformulär - Redigeras på frontend";
    display: block;
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    color: #666;
    font-size: 16px;
    font-weight: bold;
}

/* Utbildningsbeskrivning stilar */
.utbildningsbeskrivning {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.utbildningsbeskrivning-section {
    margin-bottom: 30px;
}

.beskrivning-rubrik {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.beskrivning-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.beskrivning-bild {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.beskrivning-kursprogram {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

.flex-item-full {
    width: 100%;
}

.flex-item {
    flex: 1;
    margin: 10px;
}

@media (max-width: 768px) {
    .utbildningsbeskrivning-section {
        flex-direction: column;
    }

    .flex-item {
        width: 100%;
        margin: 10px 0;
    }
}

/* Handboksformulär stilar */
.handbook-order {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.handbook-order-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.handbook-order-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.handbook-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.handbook-item label {
    flex-grow: 1;
    margin-right: 10px;
}

.handbook-item select {
    width: 60px;
}