/* Newsletter Subscribe Widget Styles */

.ahrefs-subscribe-section {
    background-color: #0f172a;
    padding: 60px 20px;
    margin: 40px 0;
}

.ahrefs-subscribe-section--full-width {
    padding: 60px 0;
    margin: 40px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

.ahrefs-container-full-width {
    width: 100%;
    padding: 0 20px;
}

.ahrefs-subscribe-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ahrefs-subscribe-inner h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.ahrefs-subscribe-inner p {
    color: #cbd5e1;
    font-size: 16px;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.ahrefs-subscribe-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.ahrefs-subscribe-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background-color: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ahrefs-subscribe-form input::placeholder {
    color: #ffffff;
    opacity: 0.6;
}

.ahrefs-subscribe-form input:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    background-color: #0f172a;
}

.ahrefs-subscribe-form button {
    padding: 12px 32px;
    background-color: #ff8c00;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ahrefs-subscribe-form button:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.ahrefs-subscribe-form button:active {
    transform: translateY(0);
}

/* Subscription Messages - Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    font-weight: 700;
    font-size: 16px;
}

.toast-message {
    flex: 1;
}

.toast--success {
    background-color: #10b981;
    color: #ffffff;
    border: 1px solid #059669;
}

.toast--success .toast-icon {
    color: #dcfce7;
}

.toast--error {
    background-color: #ef4444;
    color: #ffffff;
    border: 1px solid #dc2626;
}

.toast--error .toast-icon {
    color: #fee2e2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ahrefs-subscribe-section {
        padding: 40px 16px;
    }

    .ahrefs-subscribe-inner h2 {
        font-size: 24px;
    }

    .ahrefs-subscribe-inner p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .ahrefs-subscribe-form {
        flex-direction: column;
    }

    .ahrefs-subscribe-form input {
        width: 100%;
        min-width: unset;
    }

    .ahrefs-subscribe-form button {
        width: 100%;
    }
}

/* Toast on Mobile */
@media (max-width: 480px) {
    .ahrefs-subscribe-section {
        padding: 30px 12px;
    }

    .ahrefs-subscribe-inner h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .ahrefs-subscribe-inner p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .ahrefs-subscribe-form input {
        padding: 10px 14px;
        font-size: 13px;
    }

    .ahrefs-subscribe-form button {
        padding: 10px 24px;
        font-size: 14px;
    }

    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }
}
