/*
Theme Name:   AMR NAYEL Child
Theme URI:    https://amrnayl.com/
Description:   Child theme for amrnayl.com — adds a reviews submission form saved to ACF.
Author:       AMR NAYEL
Template:     astra
Version:      1.1.0
Text Domain:  amrnayl-child
*/

/* ====== Reviews form styles ====== */
.amrnayl-review-form {
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif !important;
}
.amrnayl-review-form * {
    font-family: 'Cairo', sans-serif !important;
}
.amrnayl-review-form .arf-eyebrow {
    color: #2f6bff;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 6px;
}
.amrnayl-review-form h3 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #0f172a;
}
.amrnayl-review-form .arf-sub {
    color: #64748b;
    margin: 0 0 24px;
    font-size: 15px;
}

/* Row 1: name + rating side by side */
.amrnayl-review-form .arf-row-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}
@media (max-width: 700px) {
    .amrnayl-review-form { padding: 24px; }
    .amrnayl-review-form .arf-row-top { grid-template-columns: 1fr; }
}

.amrnayl-review-form label {
    display: block;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
}
.amrnayl-review-form input[type="text"],
.amrnayl-review-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.amrnayl-review-form input[type="text"]:focus,
.amrnayl-review-form textarea:focus {
    outline: none;
    border-color: #2f6bff;
    box-shadow: 0 0 0 3px rgba(47,107,255,.15);
}
.amrnayl-review-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Star rating */
.amrnayl-review-form .arf-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
    font-size: 34px;
    line-height: 1;
}
.amrnayl-review-form .arf-stars input { display: none; }
.amrnayl-review-form .arf-stars label {
    margin: 0;
    cursor: pointer;
    color: #cbd5e1;
    transition: color .15s ease, transform .1s ease;
}
.amrnayl-review-form .arf-stars label:hover,
.amrnayl-review-form .arf-stars label:hover ~ label,
.amrnayl-review-form .arf-stars input:checked ~ label {
    color: #f5b301;
}
.amrnayl-review-form .arf-stars label:active { transform: scale(1.15); }

.amrnayl-review-form .arf-submit {
    margin-top: 22px;
    background:#101417;

    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 34px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.amrnayl-review-form .arf-submit:hover {  background:#DFFF57
;

}
.amrnayl-review-form .arf-submit:active { transform: translateY(1px); }

.amrnayl-review-notice {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 16px 20px;
    border-radius: 12px;
    direction: rtl;
    text-align: right;
    font-weight: 700;
    font-family: 'Cairo', sans-serif !important;
}
.amrnayl-review-notice.success { background: #dcfce7; color: #166534; }
.amrnayl-review-notice.error   { background: #fee2e2; color: #991b1b; }
