.wedding-platform-messages {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(1rem, 2.4vw, 1.5rem);
    margin-inline: auto;
}

.wedding-platform-messages__panel {
    border: 1px solid #e6ddd1;
    border-radius: 18px;
    padding: clamp(20px, 2.5vw, 30px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 237, 0.96));
    box-shadow: 0 16px 34px rgba(61, 46, 31, 0.08);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.wedding-platform-messages__panel--form {
    position: relative;
}

.wedding-platform-messages__panel--form::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c9a86a, #8e6d46, #c9a86a);
}

.wedding-platform-messages__panel h3 {
    margin: 0 0 0.55rem;
    text-align: center;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.wedding-platform-messages__panel--form h3::after {
    content: "Compartilhe um carinho para este dia especial.";
    display: block;
    margin-top: 0.55rem;
    font-size: 0.98rem;
    font-weight: 400;
    color: #766b61;
}

.wedding-platform-messages__form {
    display: grid;
    gap: 12px;
}

.wedding-platform-messages__form label {
    display: grid;
    gap: 0.35rem;
    color: #4d443f;
    font-weight: 600;
}

.wedding-platform-messages__form input,
.wedding-platform-messages__form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.82rem 0.95rem;
    border: 1px solid #d9cfc3;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #3c332e;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.wedding-platform-messages__form input:focus,
.wedding-platform-messages__form textarea:focus {
    outline: none;
    border-color: #b89b74;
    box-shadow: 0 0 0 4px rgba(184, 155, 116, 0.14);
    background: #ffffff;
}

.wedding-platform-messages__form button {
    justify-self: start;
    min-height: 46px;
    padding: 0.78rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #8a6a43, #b89b74);
    color: #fffdf9;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(85, 61, 26, 0.18);
}

.wedding-platform-messages__form button:hover,
.wedding-platform-messages__form button:focus {
    background: linear-gradient(135deg, #7a5c38, #a8875d);
}

.wedding-platform-messages__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wedding-platform-messages__item {
    border: 1px solid #e4d8ca;
    border-radius: 16px;
    padding: 18px 18px 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 236, 0.96));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 220px;
    position: relative;
    box-shadow: 0 12px 24px rgba(67, 49, 33, 0.06);
}

.wedding-platform-messages__item::before {
    content: "\201C";
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 3rem;
    line-height: 1;
    color: rgba(184, 155, 116, 0.28);
    font-family: Georgia, serif;
}

.wedding-platform-messages__text {
    margin: 0;
    padding-top: 1rem;
    color: #433a35;
    line-height: 1.75;
    white-space: pre-line;
}

.wedding-platform-messages__meta {
    margin: auto 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(138, 106, 67, 0.14);
    font-size: 0.92rem;
    color: #6b625a;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.wedding-platform-messages__author {
    font-weight: 700;
    color: #4d4033;
}

.wedding-platform-messages__date {
    font-size: 0.85rem;
    color: #8a8178;
}

.wedding-platform-messages__notice {
    margin: 8px 0 14px;
    border-radius: 12px;
    padding: 10px 12px;
}

.wedding-platform-messages__notice--success {
    background: #edf7ed;
    color: #1f5f2f;
}

.wedding-platform-messages__notice--error {
    background: #fdecea;
    color: #8a1f1f;
}

@media (max-width: 1100px) {
    .wedding-platform-messages__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wedding-platform-messages {
        padding: 0.75rem;
    }

    .wedding-platform-messages__panel {
        padding: 16px;
        border-radius: 16px;
    }

    .wedding-platform-messages__list {
        grid-template-columns: 1fr;
    }

    .wedding-platform-messages__item {
        min-height: 0;
        padding: 16px 14px 14px;
    }

    .wedding-platform-messages__form button {
        width: 100%;
        justify-self: stretch;
    }
}
