/**
 * DF Newsletter Popup - Styles
 *
 * @author    Data Firefly
 * @copyright 2025 Data Firefly
 * @license   Commercial
 */

/* Overlay */
.dfnp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
    box-sizing: border-box;
}

.dfnp-overlay.dfnp-visible {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.dfnp-popup {
    position: relative;
    display: flex;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dfnp-overlay.dfnp-visible .dfnp-popup {
    transform: translateY(0) scale(1);
}

/* Close Button */
.dfnp-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    z-index: 10;
    padding: 2px 8px;
    font-weight: 300;
	background: #fff;
    border-radius: 50%;
}

.dfnp-close:hover {
    opacity: 1;
}

/* Content Layout */
.dfnp-content {
    display: flex;
    width: 100%;
    min-height: 400px;
}

/* Image Section */
.dfnp-image {
    flex: 0 0 42%;
    overflow: hidden;
}

.dfnp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	object-position: top;
}

/* Text Section */
.dfnp-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 35px;
    text-align: center;
}

/* Title */
.dfnp-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.25;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

/* Description */
.dfnp-description {
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 28px;
    opacity: 0.85;
    max-width: 280px;
}

/* Form */
.dfnp-form-wrapper {
    width: 100%;
    max-width: 260px;
}

.dfnp-form {
    width: 100%;
}

.dfnp-input-group {
    margin-bottom: 0;
}

.dfnp-email-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #000;
    background: transparent;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    text-align: center;
    letter-spacing: 0.02em;
	margin-bottom:10px;
}

.dfnp-email-input::placeholder {
    color: inherit;
    opacity: 0.5;
    text-align: center;
}

.dfnp-email-input:focus {
    border-color: #555;
}

.dfnp-submit-btn {
    width: 100%;
    padding: 12px 14px;
    border: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-family: inherit;
    margin-top: -1px;
}

.dfnp-submit-btn:hover {
    opacity: 0.85;
}

.dfnp-submit-btn:active {
    opacity: 0.7;
}

.dfnp-submit-btn.dfnp-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Message */
.dfnp-message {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
    padding: 8px;
}

.dfnp-message.dfnp-success {
    color: #2d7a3a;
}

.dfnp-message.dfnp-error {
    color: #c0392b;
}

/* Social Links */
.dfnp-social-links {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    justify-content: center;
    align-items: center;
}

.dfnp-social-link {
    color: inherit;
    opacity: 0.65;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfnp-social-link:hover {
    opacity: 1;
}

.dfnp-social-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 600px) {
    .dfnp-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .dfnp-popup {
        max-width: 92%;
        max-height: 95vh;
    }

    .dfnp-content {
        flex-direction: column;
        min-height: auto;
    }

    .dfnp-image {
        flex: 0 0 auto;
        height: 380px;
    }

    .dfnp-text {
        padding: 25px 20px;
    }

    .dfnp-title {
        font-size: 22px;
		text-align:left;
    }

    .dfnp-description {
        font-size: 12px;
        margin-bottom: 20px;
		text-align:left;
    }

    .dfnp-form-wrapper {
        max-width: 100%;
    }
}

/* Animation for when popup is closing */
.dfnp-overlay.dfnp-closing {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.dfnp-overlay.dfnp-closing .dfnp-popup {
    transform: translateY(20px) scale(0.95);
    transition: transform 0.25s ease;
}
