.wp-srf-container {
    max-width: 500px;
    margin: 20px auto;
    font-family: sans-serif;
}

.wp-srf-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e4e7;
}

.wp-srf-field {
    margin-bottom: 15px;
}

.wp-srf-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.wp-srf-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.wp-srf-submit {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.wp-srf-submit:hover {
    background: #135e96;
}

.wp-srf-notice {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.wp-srf-success {
    background: #e6f4ea;
    color: #1b7a3d;
    border: 1px solid #c3e6cb;
}

.wp-srf-error {
    background: #fdecea;
    color: #a4262c;
    border: 1px solid #f5c6cb;
}

.wp-srf-error ul {
    margin: 0;
    padding-left: 20px;
}

/* 
 * Full-width breakout for wp-simple-reg-form
 * Forces the form to span the entire viewport width,
 * regardless of the parent theme container constraints.
 */
.wp-srf-container {
    width: 95vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 15px !important;
    /* Opcjonalny odstęp od krawędzi */
    padding-right: 15px !important;
    max-width: none !important;
    box-sizing: border-box;
}

/* Poprawka dla pasków przewijania (aby nie ucinało treści po prawej) */
body.admin-bar .wp-srf-container {
    margin-left: calc(50% - 50vw + 32px) !important;
    /* 32px to szerokość paska admina WP */
}

/* Responsywność: mniejsze paddingi na mobilach */
@media (max-width: 768px) {
    .wp-srf-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Upewnij się, że tabela w module 2/3 nie powoduje przewijania strony */
    .wp-srf-container .table-responsive {
        border: none;
        margin-bottom: 0;
    }
}

/* === Floating Toast Notifications (Center Screen) === */
.wp-srf-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    /* Above everything */
    min-width: 300px;
    max-width: 90vw;
    animation: wpSrfToastFadeIn 0.3s ease-out;
}

@keyframes wpSrfToastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.wp-srf-toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    color: #fff;
}

/* Success style */
.wp-srf-toast.is-success .wp-srf-toast-content {
    background: #28a745;
    /* Bootstrap success green */
}

/* Error style */
.wp-srf-toast.is-error .wp-srf-toast-content {
    background: #dc3545;
    /* Bootstrap danger red */
}

/* Close button */
.wp-srf-toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    font-weight: 300;
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.8;
    padding: 0;
    line-height: 1;
}

.wp-srf-toast-close:hover {
    opacity: 1;
}

/* Fade out animation */
.wp-srf-toast.fade-out {
    animation: wpSrfToastFadeOut 0.3s ease-in forwards;
}

@keyframes wpSrfToastFadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .wp-srf-toast {
        top: auto;
        bottom: 20px;
        /* Move to bottom on mobile for better thumb access */
        transform: translateX(-50%);
        min-width: auto;
        width: calc(100% - 40px);
    }

    @keyframes wpSrfToastFadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}