/**
 * Decokeramica Reviews
 */

/* ===========================================================
   Контейнер формы
=========================================================== */

.dc-review-form-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.dc-review-form-wrap {
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
}

/* ===========================================================
   Заголовок формы
=========================================================== */

.dc-review-title {
    margin: 0 0 20px;
    text-align: center;
    color: #643A12;
    text-transform: uppercase;
    font-family:'Cambria','Georgia',serif !important;      /* Шрифт */
    font-size:20px !important;                             /* Розмір */

    font-weight:700 !important;                            /* Насиченість */

    line-height:1.1 !important;                            /* Міжрядковий інтервал */

    color:#643A12 !important;                              /* Колір */
    
}

.dc-review-title::after {
    content: "";
    display: block;
    width: 95px;
    height: 2px;
    margin: 12px auto 0;
    background: #c9a27b;
}

/* ===========================================================
   Форма
=========================================================== */

.dc-review-form {
    width: 100%;
}

.dc-review-field {
    margin-bottom: 12px;
}

.dc-review-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #3d3d3d;
}

.dc-review-form input[type="text"],
.dc-review-form select,
.dc-review-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    font-size: 15px;
    transition: border-color .2s ease;
}

.dc-review-form input[type="text"]:focus,
.dc-review-form select:focus,
.dc-review-form textarea:focus {
    border-color: #643A12;
    outline: none;
}

.dc-review-form textarea {
    height: 50px;
    min-height: 50px;
    resize: vertical;
}

.dc-review-submit,
.dc-review-form button[type="submit"] {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 34px;
    border: none;
    border-radius: 4px;
    background: #643A12;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.dc-review-submit:hover,
.dc-review-form button[type="submit"]:hover {
    background: #4d2d0f;
}

.dc-review-message {
    max-width: 720px;
    margin: 18px auto 0;
    font-weight: 600;
}

/* ===========================================================
   Список отзывов
=========================================================== */

.dc-reviews-list {
    margin-bottom: 30px;
}

.dc-review {
    margin-bottom: 28px;
    padding: 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.dc-review:last-child {
    margin-bottom: 10px;
}

.dc-review-answer{
    margin-top:20px !important;

    padding:0px 0 0px 24px !important;

    background:none !important;
    border:none !important;

    font-size:16px !important;
    line-height:1.3 !important;
    font-style:italic;

    color:#643A12 !important;

    box-shadow:0 4px 6px rgba(0,0,0,.04);
}

.dc-review-answer-title {
    margin-bottom: 6px;
    font-weight: 600;
    color: #643A12;
}

.dc-review-text{
    margin-top:10px;
}

.dc-review-text p{
    margin-bottom: 6px !important;
    padding:0 !important;

    font-size:16px;
    line-height:1.45;
    color:#444;
}
/* ===========================================================
   Tablet
=========================================================== */

@media (max-width:1024px) {

    .dc-review-form-wrap,
    .dc-review-message {
        max-width: 88%;
    }

    .dc-review-form-wrap {
        padding: 24px;
    }

}

/* ===========================================================
   Mobile
=========================================================== */

@media (max-width:767px) {

    .dc-review-form-wrap,
    .dc-review-message {
        max-width: 100%;
    }

    .dc-review-form-wrap {
        padding: 20px 16px;
        border-radius: 6px;
    }

    .dc-review-title {
        font-size: 1.55rem;
    }

    .dc-review-submit,
    .dc-review-form button[type="submit"] {
        width: 100%;
    }

}

/* ===========================================================
   ОТЗЫВЫ (новый review-item.php)
=========================================================== */

.dc-review{
    display:flex;
    gap:14px;
    align-items:flex-start;

    margin-bottom:18px;
    padding:20px;

    background:#fff;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.dc-avatar{
    width:56px;
    height:56px;
    flex-shrink:0;

    border-radius:50%;
    background:#e8e1d8;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:26px;
    line-height:1;
}

.dc-review-content{
    flex:1;
    min-width:0;
}

.dc-review-head{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;

    margin-bottom:2px;
}

.dc-review-head strong{
    font-family:'Cambria','Georgia',serif;
    font-size:18px;
    font-weight:700;
    color:#643A12;
}

.dc-stars{
    color:#f5b301;
    font-size:18px;
    letter-spacing:2px;
}

.dc-review-date{
    margin:0;
    font-size:13px;
    color:#888;
}

.dc-review-text{
    margin:0px; 
    padding:0px;

    line-height:1.45;
    color:#333;
}

.dc-review-answer{
    margin-top:0px !important;

    padding:12px 0 16px 35px !important;

    background:none !important;
    border:none !important;

    font-size:16px;
    font-style:italic;

    color:#643A12;

    box-shadow:0 8px 8px rgba(0,0,0,.05);
}
.dc-review-answer-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:6px;
}

.dc-review-answer-text{
    display:block;
}
.dc-review-answer strong{
    display:inline;
    margin:0 10px 0 0;

    color:#643A12;
}

.dc-review-answer-author{
    font-family:'Cambria','Georgia',serif;
    font-size:18px;
    font-weight:700;
    color:#643A12;
    margin-right:10px;
}

.dc-review-answer-date{
    display:inline;
    margin-right:8px;

    font-size:13px;
    color:#888;
}

.dc-review-answer-text{
    display:inline;
}

.dc-review-answer p{
    margin: 0px;
    padding: 0px;
}

.dc-review-answer p:last-child{
    margin-bottom: 0px;
}

/* ===========================================================
   TABLET
=========================================================== */

@media (max-width:1024px){

    .dc-review{
        padding:18px;
    }

}

/* ===========================================================
   MOBILE
=========================================================== */

@media (max-width:767px){

    .dc-review{
        padding:15px;
        gap:12px;
    }

    .dc-avatar{
        width:42px;
        height:42px;
        font-size:20px;
    }

    .dc-review-head strong{
        font-size:18px;
    }

    .dc-stars{
        font-size:16px;
    }

    .dc-review-answer{
        padding-left:18px !important;
    }

}