/* --- Terviklik CSS fail (uus põhiosa + olemasolevad modaalid) --- */

/* Põhiline stiil ja fondid */

/* --- VANAD STIILID, MIDA SOOVITI SÄILITADA --- */

.character-story-container {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #fff;
    padding: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

.character-story-heading {
    font-size: 2.5rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 1rem;
}

.character-story-subheading {
    font-size: 1.8rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.character-story-paragraph {
    font-size: 1.1rem;
    margin: 0;
}

.character-story-dialogue-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem 1rem;
    border-radius: 8px;
}

.character-story-dialogue-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    transform: scaleX(-1);
}

.character-story-dialogue-content {
    flex-grow: 1;
}

.character-story-dialogue-content p {
    margin-top: 0;
}

.character-story-dialogue-block.molutaja {
    border-left-color: #f0ad4e;
}

.character-story-dialogue-name {
    font-weight: 700;
    font-family: 'Helvetica Neue', sans-serif;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

/* toetuse valikute konteiner */
.support-us-choices-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

/* toetuse kaartide konteiner */
.character-story-support-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.character-story-support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: #3a3086;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);

}

.character-story-support-card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.character-story-support-card-title {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.character-story-support-card-text {
    font-size: 1rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.character-story-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: none;
    cursor: pointer;
    width: 160px;
    height: 50px;
    font-weight: bold;
}


.character-story-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* Mobiilivaade */
@media (max-width: 600px) {
    .character-story-dialogue-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- UUTE KLASSIDE STIILID --- */
.new-content-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.new-content-intro-block {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 3rem;
}

.new-content-intro-image {
    width: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.new-content-intro-text {
    flex-grow: 1;
}

.new-content-intro-welcome {
    font-size: 2.2rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.new-content-intro-message {
    font-size: 1.1rem;
    margin: 0;
    text-align: justify;
}

.new-content-intro-message p {
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.new-content-plan-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, min-max(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.new-content-plan-step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-content-plan-step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.new-content-plan-step-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #2c7ac9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.new-content-plan-step-text {
    margin: 0;
    font-size: 1rem;
}

.new-content-outro-message-block {
    text-align: center;
    background-color: #a9699f;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
}

.new-content-outro-message-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #e2e8f0;
    margin: 0;
}

.new-content-cta-message-block {
    text-align: center;
    padding: 1rem;
}

.new-content-cta-message-heading {
    font-size: 1.8rem;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .new-content-intro-block {
        flex-direction: column;
        text-align: center;
    }
}

/* --- ÜLDISED MODAALI STIILID --- */
.cs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem 1rem;
}

.cs-modal-overlay p {
text-align: center;
}


.cs-modal-content {
    background: #3a3086;
    color: #e2e8f0;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 550px;
    position: relative;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.cs-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #a0aec0;
}

.cs-modal-close:hover {
    color: #ffffff;
}

.cs-modal-content h3 {
    margin-top: 0;
    font-family: 'Helvetica Neue', sans-serif;
    text-align: center;
    color: #ffffff;
}

.cs-modal-content p {
    font-family: 'Georgia', serif;
    line-height: 1.6;
}

.cs-modal-message {
    margin-top: 1rem;
    font-weight: bold;
    text-align: center;
}

.cs-modal-message.error {
    color: #f56565;
}

.cs-starter-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.cs-starter-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cs-starter-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cs-starter-item:has(input:checked) {
    background-color: rgba(44, 122, 201, 0.2);
    border-color: #2c7ac9;
}

.cs-starter-item input[type="radio"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #2c7ac9;
}

.cs-starter-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cs-starter-item label {
    font-weight: bold;
    font-family: 'Helvetica Neue', sans-serif;
    cursor: pointer;
    flex-grow: 1;
    color: #ffffff;
}

.cs-support-form {
    margin-top: 1.5rem;
}

.cs-support-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #a0aec0;
}

.cs-support-footer a {
    color: #63b3ed;
    text-decoration: none;
}

.cs-support-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .new-content-intro-block {
        flex-direction: column;
        text-align: center;
    }
}

/* UUS KLASS NUPOOLLA TENTREERIMISEKS MODAALIS */
.cs-button-center-wrapper {
    text-align: center;
    margin-top: 1.5rem;
}


/* --- UUS CSS, MIS KÄITLEB TOETUSE NUPPUDE KUJUNDUST --- */

/* Konteiner nuppude jaoks, et need oleksid ühes reas */
.cs-support-button-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Nupu stiilid */
.cs-support-button-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    position: relative;
}

.cs-support-button-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cs-support-button-option input[type="radio"] {
    /* Peida raadionupp, aga lase tal endiselt töötada */
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Kujundus, kui nupp on valitud */
.cs-support-button-option:has(input:checked) {
    background-color: rgba(44, 122, 201, 0.2);
    border-color: #2c7ac9;
}

/* Nupul olev tekst */
.cs-support-button-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e2e8f0;
}

/* Tekstid enne nuppe ja Muu summa välja */
.cs-support-choice-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.cs-support-custom-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Muu summa välja stiilid */
.cs-support-custom-option {
    display: flex;
    gap: 0; /* Eemalda vahe, et raadionupp ja sisendväli oleksid koos */
    padding: 0;
    background-color: transparent;
    border: none;
}

.cs-support-custom-option input[type="radio"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #2c7ac9;
    /* Lisa siia natuke ruumi paremale poole */
    margin-right: 0.75rem;
}

.cs-custom-amount-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #4a5568;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #2d3748;
    color: #ffffff;
}

.cs-custom-amount-input:focus {
    outline: none;
    border-color: #2c7ac9;
}
