/* --- FEEDBACK PAGE OVERHAUL — LUXURY EDITORIAL --- */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --accent: #C9A84C;
    --accent-light: #e8c96a;
    --accent-glow: rgba(201, 168, 76, 0.18);
    --primary-dark: #1a1610;
    --text-dark: #2a2520;
    --text-muted: #8a8278;
    --text-light: #fff;
    --bg-warm: #faf8f4;
    --bg-card: #ffffff;
    --border-subtle: rgba(201, 168, 76, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-card: 0 4px 24px rgba(26, 22, 16, 0.07), 0 1px 4px rgba(26, 22, 16, 0.04);
    --shadow-hover: 0 20px 60px rgba(26, 22, 16, 0.12), 0 4px 16px rgba(201, 168, 76, 0.1);
}

/* ─── SECTION ─────────────────────────────────────────── */

.feedback-section {
    padding: 120px 6% 100px;
    background: var(--bg-warm);
    min-height: 100vh;
    position: relative;
    font-family: 'DM Sans', sans-serif;
}

.feedback-section::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ─── HEADER ──────────────────────────────────────────── */

.section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 70px;
    text-align: center;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    font-weight: 300;
    color: var(--primary-dark);
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin: 0 0 18px 0;
    display: block;
    width: 100%;
}

.section-title em {
    font-style: italic;
    color: var(--accent);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
    display: block;
    width: 100%;
    margin: 0 auto;
}

.section-subtitle::after {
    content: '';
    display: block;
    width: 36px;
    height: 1.5px;
    background: var(--accent);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ─── CONTAINER ──────────────────────────────────────── */

.feedback-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ─── FORM CARD ──────────────────────────────────────── */

.feedback-form-card {
    background: var(--bg-card);
    padding: 48px 40px 44px;
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    position: sticky;
    top: 110px;
    transition: var(--transition);
}

.feedback-form-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 28px 28px 0 0;
}

.feedback-form-card:hover {
    box-shadow: var(--shadow-hover);
}

.feedback-form-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.feedback-form-card > p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-weight: 400;
}

/* ─── FORM INPUTS ────────────────────────────────────── */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #ece9e2;
    border-radius: 14px;
    background: #fdfcf9;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    display: block;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8278' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group textarea {
    height: 115px;
    resize: none;
    line-height: 1.65;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb5aa;
}

/* ─── SIDE BY SIDE ───────────────────────────────────── */

.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

/* ─── MOOD / RATING BOX ──────────────────────────────── */

.mood-box {
    background: linear-gradient(135deg, #fdfcf8 0%, #f7f4ee 100%);
    border: 1.5px solid #ece9e0;
    border-radius: 18px;
    padding: 20px 16px 18px;
    margin-bottom: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mood-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(201, 168, 76, 0.04));
    pointer-events: none;
}

.mood-box:hover {
    border-color: rgba(201, 168, 76, 0.4);
    background: #fff;
}

.rating-message {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.rating-message.popped {
    color: var(--accent);
    animation: happinessPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes happinessPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.star-rating {
    display: flex;
    gap: 10px;
    font-size: 1.7rem;
    justify-content: center;
}

.star-rating i {
    color: #ddd8ce;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 0px transparent);
}

.star-rating i:hover {
    transform: scale(1.3) translateY(-2px);
    color: var(--accent-light);
}

.star-rating i.active {
    color: var(--accent) !important;
    filter: drop-shadow(0 2px 8px rgba(201, 168, 76, 0.4));
}

/* ─── SUBMIT BUTTON ──────────────────────────────────── */

.submit-feedback-btn {
    width: 100%;
    background: var(--primary-dark);
    color: var(--text-light);
    border: none;
    padding: 17px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.submit-feedback-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: var(--transition);
}

.submit-feedback-btn:hover::before {
    opacity: 1;
}

.submit-feedback-btn span {
    position: relative;
    z-index: 1;
}

.submit-feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(201, 168, 76, 0.3);
}

.submit-feedback-btn:active {
    transform: translateY(0);
}

/* ─── FEEDBACK LIST ──────────────────────────────────── */

.feedback-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ─── FEEDBACK ITEM ──────────────────────────────────── */

.feedback-item {
    background: var(--bg-card);
    padding: 28px 30px 24px;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    border: 1px solid #f0ece4;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp 0.5s ease both;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.feedback-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
    border-radius: 0 0 4px 0;
    transition: height 0.4s ease;
}

.feedback-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(201, 168, 76, 0.2);
}

.feedback-item:hover::before {
    height: 100%;
}

/* ─── FEEDBACK TOP ───────────────────────────────────── */

.feedback-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.item-rating {
    display: flex;
    gap: 3px;
    font-size: 0.8rem;
}

.item-rating i {
    color: #ddd8ce;
}

.item-rating i.active {
    color: var(--accent);
}

/* ─── CHIPS ──────────────────────────────────────────── */

.chip-container {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.service-chip {
    background: linear-gradient(135deg, #fdf7e8, #fffcf3);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-chip:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.apartment-chip {
    background: var(--primary-dark) !important;
    color: #fff !important;
    border-color: var(--primary-dark) !important;
}

.apartment-chip:hover {
    background: #333 !important;
    border-color: #333 !important;
}

/* ─── QUOTE TEXT ─────────────────────────────────────── */

.feedback-item p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: #3a342c;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    padding-left: 20px;
}

.feedback-item p::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.35;
    font-style: normal;
    line-height: 1;
    font-family: 'Cormorant Garamond', serif;
}

/* ─── META ───────────────────────────────────────────── */

.feedback-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0ece4;
}

.feedback-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
}

.feedback-user i {
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.7;
}

.feedback-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* ─── LOADING STATE ──────────────────────────────────── */

[ng-if="vm.isLoading"] {
    text-align: center;
    padding: 60px 40px;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 1050px) {
    .feedback-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feedback-form-card {
        position: relative;
        top: 0;
        padding: 36px 28px;
    }
}

@media (max-width: 640px) {
    .feedback-section {
        padding: 100px 5% 80px;
    }

    .feedback-form-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 2.6rem;
    }

    .feedback-item {
        padding: 22px 20px 18px;
    }

    .side-by-side {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .chip-container {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .feedback-top {
        flex-direction: column;
        align-items: flex-start;
    }
}