/* index.php 전용 스타일 */
.intro {
    padding-bottom: 30px;
}

.newsletter-redesigned {
    background-color: #eaeeefff;
    padding: 0;
}

.newsletter-container {
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section Override for Precise Spacing */
.renewal-hero {
    height: auto !important;
    /* Disable 90vh to control height manually */
    min-height: 500px;
    /* Reduced min-height slightly */
    padding-top: 100px;
    /* Reduced from 150px to move text UP */
    padding-bottom: 60px;
    /* Exact 60px bottom spacing */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically if needed */
}

.newsletter-image {
    flex: 1;
    padding-right: 50px;
}

.newsletter-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.newsletter-text-content {
    flex: 1.2;
}

.newsletter-text-content h2 {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.newsletter-text-content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-image {
        padding-right: 0;
        margin-bottom: 10px;
        max-width: 400px;
    }

    .newsletter-text-content h2 {
        font-size: 2em;
    }
}

/* Benefits List Styles */
.newsletter-benefits {
    text-align: left;
    display: inline-block;
    background: #fdfdfd;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 15px auto 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    max-width: 100%;
}

.newsletter-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.newsletter-benefits li {
    margin-bottom: 10px;
    font-size: 1em;
    color: #444;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
    text-align: left;
}

.newsletter-benefits li:last-child {
    margin-bottom: 0;
}

.newsletter-benefits li strong {
    color: #e67e22;
    /* Accent color to match existing theme if any, or distinct */
    font-weight: 700;
    margin-right: 5px;
    font-size: 0.95em;
}

.newsletter-benefits li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

@media (max-width: 768px) {
    .newsletter-benefits {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.8);
    }

    .newsletter-benefits li {
        font-size: 0.95em;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
}

.modal.active {
    display: flex !important;
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .newsletter-form {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
    }

    .newsletter-form input[type="email"],
    .newsletter-form input[type="text"] {
        width: 280px;
        margin-bottom: 0;
    }

    .newsletter-form button {
        flex-shrink: 0;
    }
}

body .modal .modal-content {
    background: rgba(25, 25, 40, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin: auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 85%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    html body div.modal.active {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 12vh 0 20px 0 !important;
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        transform: none !important;
    }

    html body div.modal.active div.modal-content {
        width: 88% !important;
        max-width: 330px !important;
        padding: 25px 15px !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        margin: 0 auto !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
        box-sizing: border-box !important;
    }

    html body div.modal.active h2 {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
    }

    html body div.modal.active p {
        font-size: 0.95rem !important;
        margin-bottom: 18px !important;
    }

    html body div.modal.active .button-group {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
        margin-top: 20px !important;
    }

    html body div.modal.active .cta-button {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1rem !important;
        padding: 10px !important;
        margin: 0 !important;
    }
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #cbd5e1;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content .cta-button {
    background-color: #f1c40f;
    color: #2c3e50;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.modal-content .cta-button:hover {
    background-color: #f39c12;
}

/* Magic Letter Modal specific */
.magic-close-button,
.magic2-close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.magic-ok-button {
    background-color: #f1c40f;
    color: #2c3e50;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.magic2-login-button,
.magic2-signup-button {
    background-color: #3578E5;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.magic2-signup-button {
    background-color: #2ecc71;
}

.text-container {
    font-family: 'Nanum Gothic', 'Malgun Gothic', 'Noto Sans KR', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.free-box {
    display: inline-block;
    padding: 4px 8px;
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: default;
}

@keyframes bluePulse {
    0% {
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.2), 0 25px 50px rgba(0, 0, 0, 0.5);
        border-color: rgba(79, 172, 254, 0.4);
    }

    100% {
        box-shadow: 0 0 35px rgba(79, 172, 254, 0.5), 0 0 10px rgba(0, 242, 254, 0.3), 0 25px 50px rgba(0, 0, 0, 0.5);
        border-color: rgba(0, 242, 254, 0.7);
    }
}

#invitationModal .modal-content {
    border-color: rgba(79, 172, 254, 0.5);
    animation: bluePulse 3s infinite alternate;
}

#invitationModal .modal-content:hover {
    border-color: rgba(43, 255, 0, 0.8);
    box-shadow:
        0 0 30px rgba(3, 173, 11, 0.4),
        0 0 60px rgba(9, 131, 29, 0.3),
        0 25px 50px rgba(0, 0, 0, 0.6);
    animation: none;
}

#invitationModal h2 {
    color: #fff !important;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

#invitationModal p {
    color: #d0d0e0;
    font-size: 1.1rem;
    line-height: 1.6;
}

#invitationModal .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

#invitationModal .cta-button {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

#invitationYesButton {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #000;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
}

#invitationNoButton {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.1);
}