/* Common Newsletter Styles */
.newsletter-template {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.newsletter-container {
    display: flex;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

/* Default Style */
.style-default {
    background-color: #f5f5f5;
}

.style-default .newsletter-content {
    flex: 1;
    padding: 4rem;
    max-width: 600px;
}

.style-default .logo-area {
    margin-bottom: 2.5rem;
}

.style-default h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.style-default .newsletter-description {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #666666;
    margin-bottom: 2rem;
}

.style-default .newsletter-form {
    margin-top: 2rem;
}

.style-default .newsletter-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    min-width: 500px;
}

.style-default .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

/* Space Theme */
.style-space {
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh !important;
    padding: 0;
    margin: 0;
}

.style-space .newsletter-container {
    max-width: none;
    margin: 0;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.style-space .newsletter-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #000000;
    justify-content: center;
    align-items: center;
}

.style-space .signup-content {
    width: 600px;
    padding: 2rem;
    max-width: 100%;
}

.style-space h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #ffffff;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Update media queries for new width */
@media (max-width: 991px) {
    .style-space .signup-content {
        width: 100%;
        max-width: 600px;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .style-space .signup-content {
        padding: 1.5rem;
    }
    
    .style-space h1 {
        font-size: 2rem;
    }
}

.style-space .description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
}

.style-space .newsletter-image {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #16213e;
}

.style-space .image-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.style-space .image-content h2 {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Trust Badges for Space Theme */
.style-space .trust-badges {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.style-space .badge {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.style-space .badge svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Forminator Form Styles - Default Theme */
.style-default .forminator-input,
.style-default .forminator-textarea {
    padding: 1rem !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease !important;
}

.style-default .forminator-button-submit {
    width: 100% !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    background-color: #0066cc !important;
    color: #ffffff !important;
}

/* Forminator Form Styles - Space Theme */
.space-theme .forminator-row {
    width: 100% !important;
}

.space-theme .forminator-input,
.space-theme .forminator-textarea {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    padding: 0.75rem 0 !important;
    transition: border-color 0.3s ease !important;
    font-size: 1rem !important;
    width: 100% !important;
}

.space-theme .forminator-input:focus,
.space-theme .forminator-textarea:focus {
    border-bottom-color: #ffffff !important;
    box-shadow: none !important;
}

.space-theme .forminator-button-submit {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: 4px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    transition: opacity 0.3s ease !important;
    width: 100% !important;
    justify-content: center !important;
}

.space-theme .forminator-button-submit:hover {
    opacity: 0.9 !important;
}

/* Fullscreen Mode Styles */
.fullscreen-newsletter {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.fullscreen-newsletter .newsletter-template {
    padding: 0;
    margin: 0;
    min-height: 80vh;
}

.fullscreen-newsletter .newsletter-container {
    margin: 0;
    border-radius: 0;
    max-width: none;
    min-height: 80vh;
}

/* Responsive Design */
@media (max-width: 991px) {
    .newsletter-container {
        margin: 1rem;
    }

    .style-default .newsletter-content {
        padding: 3rem;
    }

    .style-default .newsletter-image {
        min-width: 400px;
    }

    .style-space .newsletter-container {
        grid-template-columns: 1fr;
    }

    .style-space .signup-content {
        width: 100%;
        max-width: 400px;
    }

    .style-space .newsletter-image {
        min-height: 300px;
    }
}

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

    .style-default .newsletter-content {
        padding: 2rem;
        max-width: none;
    }

    .style-default .newsletter-image {
        min-width: 0;
        min-height: 300px;
        order: -1;
    }

    .style-space .signup-content {
        padding: 2rem;
    }

    .fullscreen-newsletter .newsletter-container {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .newsletter-template {
        padding: 0;
    }

    .newsletter-container {
        border-radius: 0;
        margin: 0;
    }

    .style-default .newsletter-content,
    .style-space .signup-content {
        padding: 1.5rem;
    }

    .style-default h1,
    .style-space h1 {
        font-size: 2rem;
    }

    .style-default .newsletter-image,
    .style-space .newsletter-image {
        min-height: 200px;
    }
}

.style-space .signup-content {
    width: 600px;
    padding: 2rem;
    max-width: 100%;
}

.style-space h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
}

.style-space .description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    width: 100%;
    display: block;
}

.style-space .description a {
    color: #ffffff;
    text-decoration: underline;
}

/* Form Styles */
.space-theme .forminator-row {
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

.space-theme .forminator-input,
.space-theme .forminator-textarea {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    padding: 0.75rem 0 !important;
    transition: border-color 0.3s ease !important;
    font-size: 1rem !important;
    width: 100% !important;
}

.space-theme .forminator-input:focus,
.space-theme .forminator-textarea:focus {
    border-bottom-color: #ffffff !important;
    box-shadow: none !important;
}

.space-theme .forminator-button-submit {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: 4px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    transition: opacity 0.3s ease !important;
    width: 100% !important;
    justify-content: center !important;
    margin-top: 1rem !important;
}

/* Media Queries */
@media (max-width: 991px) {
    .style-space .signup-content {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 576px) {
    .style-space .signup-content {
        padding: 1.5rem;
    }
    
    .style-space h1 {
        font-size: 2rem;
    }
    
    .style-space .description {
        font-size: 0.875rem;
    }
}


.space-layout{
	min-height: 100vh !important;
}