/**
 * Frontend Styles for Review Collection Plugin
 * Circle of Hope Branding Palette: Mauve (#96607F) - NO Gradients
 */

.rc-feedback-wrapper {
    max-width: 660px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333333;
    box-sizing: border-box;
}

.rc-feedback-wrapper * {
    box-sizing: border-box;
}

/* Card Container with Elegant Mauve Top Accent */
.rc-form-card,
.rc-success-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 44px 38px;
    box-shadow: 0 16px 40px -6px rgba(150, 96, 127, 0.12), 0 4px 16px rgba(0, 0, 0, 0.03);
    border: 1px solid #F0E6EB;
    border-top: 4px solid #96607F;
    position: relative;
    transition: all 0.3s ease;
}

@media (max-width: 600px) {
    .rc-form-card,
    .rc-success-card {
        padding: 28px 22px;
        border-radius: 14px;
    }
}

/* Header & Intro - Warm Serif Styling */
.rc-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.rc-heading {
    font-family: Georgia, "Times New Roman", serif;
    color: #4A2A3E;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px 0;
    letter-spacing: -0.01em;
}

.rc-intro {
    color: #5A5257;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.rc-intro p {
    margin: 0 0 10px 0;
}

.rc-intro p:last-child {
    margin-bottom: 0;
}

.rc-intro a,
.rc-field-help a,
.rc-paragraph-content a,
.rc-success-message a {
    color: #96607F;
    text-decoration: underline;
    font-weight: 500;
}

.rc-intro a:hover,
.rc-field-help a:hover,
.rc-paragraph-content a:hover,
.rc-success-message a:hover {
    color: #7E4F6B;
}

/* Paragraph / Content Notice Block */
.rc-paragraph-block {
    background: #FAF7F8;
    border-left: 3px solid #96607F;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.rc-paragraph-title {
    font-size: 15px;
    font-weight: 600;
    color: #4A2A3E;
    margin: 0 0 6px 0;
}

.rc-paragraph-content {
    font-size: 14px;
    line-height: 1.6;
    color: #4A4247;
}

.rc-paragraph-content p {
    margin: 0 0 8px 0;
}

.rc-paragraph-content p:last-child {
    margin-bottom: 0;
}

/* Form Field Groups */
.rc-field-group {
    margin-bottom: 24px;
}

.rc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #332B30;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.rc-field-help {
    font-size: 13px;
    color: #72686F;
    margin: -2px 0 8px 0;
    line-height: 1.45;
}

.rc-optional {
    font-weight: 400;
    color: #857A80;
    font-size: 13px;
}

.rc-required {
    color: #D93838;
}

/* Inputs & Textareas */
.rc-input,
.rc-textarea,
.rc-select {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #2B2B2B;
    background-color: #FAF7F8;
    border: 1.5px solid #E6DCED;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.rc-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2396607F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.rc-input:focus,
.rc-textarea:focus,
.rc-select:focus {
    background-color: #FFFFFF;
    border-color: #96607F;
    box-shadow: 0 0 0 4px rgba(150, 96, 127, 0.15);
}

/* Radio Group */
.rc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FAF7F8;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1.5px solid #E6DCED;
}

.rc-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #4A4247;
}

.rc-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.rc-radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #D6CDD3;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.rc-radio-label:hover .rc-radio-custom {
    border-color: #96607F;
}

.rc-radio:checked ~ .rc-radio-custom {
    border-color: #96607F;
}

.rc-radio-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #96607F;
}

.rc-radio:checked ~ .rc-radio-custom:after {
    display: block;
}

.rc-textarea {
    resize: vertical;
    min-height: 135px;
}

/* Interactive 5-Star Rating Widget */
.rc-star-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #FAF7F8;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1.5px solid #E6DCED;
}

.rc-stars-container {
    display: flex;
    gap: 6px;
}

.rc-star-btn {
    background: none;
    border: none;
    padding: 2px;
    margin: 0;
    cursor: pointer;
    color: #D6CDD3;
    transition: transform 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.rc-star-btn:hover,
.rc-star-btn:focus-visible {
    transform: scale(1.18);
    outline: none;
}

.rc-star-btn.active,
.rc-star-btn.hover {
    color: #F59E0B;
}

.rc-rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #96607F;
    background: #FFFFFF;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #E6DCED;
}

/* Custom Mauve Checkbox */
.rc-checkbox-group {
    margin-top: 10px;
    margin-bottom: 28px;
}

.rc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.rc-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.rc-checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #D6CDD3;
    border-radius: 5px;
    background-color: #FAF7F8;
    margin-top: 2px;
    transition: all 0.2s ease;
    position: relative;
}

.rc-checkbox-label:hover .rc-checkbox-custom {
    border-color: #96607F;
}

.rc-checkbox:checked ~ .rc-checkbox-custom {
    background-color: #96607F;
    border-color: #96607F;
}

.rc-checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rc-checkbox:checked ~ .rc-checkbox-custom:after {
    display: block;
}

.rc-checkbox-text {
    font-size: 14px;
    line-height: 1.55;
    color: #4A4247;
}

/* Solid Mauve Primary Submit Button (NO GRADIENT) */
.rc-submit-group {
    text-align: center;
}

.rc-btn-primary {
    background-color: #96607F;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 36px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 14px rgba(150, 96, 127, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rc-btn-primary:hover {
    background-color: #7E4F6B;
    box-shadow: 0 6px 18px rgba(150, 96, 127, 0.4);
    transform: translateY(-1px);
}

.rc-btn-primary:active {
    transform: translateY(0);
    background-color: #6E445D;
}

.rc-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.rc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: rc-spin 0.8s infinite linear;
}

@keyframes rc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Banner */
.rc-error-banner {
    background-color: #FDF2F2;
    border: 1px solid #F8B4B4;
    color: #9B1C1C;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 22px;
}

/* Success Card & Google Review Prompt */
.rc-success-card {
    text-align: center;
    padding: 52px 36px;
}

.rc-success-icon {
    color: #96607F;
    margin-bottom: 22px;
}

.rc-success-message {
    font-family: Georgia, "Times New Roman", serif;
    color: #4A2A3E;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 28px 0;
}

.rc-google-prompt {
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px solid #F0E6EB;
}

.rc-google-text {
    font-size: 16px;
    font-weight: 600;
    color: #96607F;
    margin: 0 0 18px 0;
}

.rc-btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #FFFFFF;
    color: #3C4043;
    border: 1.5px solid #E6DCED;
    border-radius: 50px;
    padding: 13px 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.rc-btn-google:hover {
    background-color: #FAF7F8;
    border-color: #96607F;
    color: #96607F;
    box-shadow: 0 4px 14px rgba(150, 96, 127, 0.18);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Public Testimonials Display Grid */
.rc-testimonials-display-wrapper {
    max-width: 1000px;
    margin: 30px auto;
}

.rc-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.rc-testimonial-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 26px;
    border: 1px solid #F0E6EB;
    border-top: 3px solid #96607F;
    box-shadow: 0 6px 18px rgba(150, 96, 127, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rc-testimonial-rating {
    margin-bottom: 12px;
}

.rc-testimonial-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.65;
    color: #4A4247;
    font-style: italic;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.rc-testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: #96607F;
}
