/* ==========================================================================
   HYT Testimonials Grid & Form Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Testimonials Grid Layout
   -------------------------------------------------------------------------- */

/* Outer Container wrapper (Ensures full container width availability) */
.hyt-testimonials-container {
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

/* Grid display */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 4rem;
    box-sizing: border-box;
    width: 100%;
}

/* Testimonial Card */
.testi {
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    padding: 2rem;
    box-sizing: border-box;
}

/* Stars rating color and size */
.testi .stars {
    color: #ff0033;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* Testimonial Content P */
.testi p {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* Author / Signed line */
.testi .who {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888888;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Submission Form Layout
   -------------------------------------------------------------------------- */

.hyt-testimonial-form-wrapper {
    max-width: 520px;
    margin: 2rem auto;
    padding: 2.4rem;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    box-sizing: border-box;
    color: #ffffff;
}

.hyt-testi-form h3 {
    text-transform: uppercase;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1.8rem;
    text-align: center;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.hyt-form-group {
    margin-bottom: 1.4rem;
    box-sizing: border-box;
}

.hyt-form-group label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hyt-form-group input[type="text"],
.hyt-form-group textarea {
    width: 100%;
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 0.8rem;
    color: #ffffff;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hyt-form-group input[type="text"]:focus,
.hyt-form-group textarea:focus {
    border-color: #ff0033;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 51, 0.15);
}

/* Star Rating Selector using CSS Radio Hack in reverse row */
.hyt-rating-selector {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    box-sizing: border-box;
}

.hyt-rating-selector input[type="radio"] {
    display: none;
}

.hyt-rating-selector label {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    user-select: none;
    margin-bottom: 0;
}

/* Hover and checked rules */
.hyt-rating-selector label:hover,
.hyt-rating-selector label:hover ~ label,
.hyt-rating-selector input:checked ~ label {
    color: #ff0033;
}

.hyt-rating-selector label:active {
    transform: scale(0.9);
}

/* Submit Button */
.hyt-btn-submit {
    width: 100%;
    background: #ff0033;
    color: #ffffff;
    padding: 1rem;
    border: none;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.hyt-btn-submit:hover {
    background-color: #d6002b;
}

.hyt-btn-submit:active {
    transform: scale(0.98);
}

.hyt-btn-submit:disabled {
    background-color: #444444;
    color: #888888;
    cursor: not-allowed;
    transform: none;
}

/* AJAX Message Box */
.hyt-form-message {
    margin-top: 1.2rem;
    padding: 0.8rem;
    border-radius: 3px;
    font-size: 0.9rem;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.4;
}

.hyt-form-message.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.hyt-form-message.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}
