/**
 * Rulocus Reviews - Frontend Styles
 */

/* Modal Base */
.rlr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rlr-modal.rlr-modal-open {
    opacity: 1;
    visibility: visible;
}

/* Modal Overlay */
.rlr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

/* Modal Container */
.rlr-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Content */
.rlr-modal-content {
    position: relative;
    background: #1a1a1a;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.rlr-modal.rlr-modal-open .rlr-modal-content {
    transform: scale(1);
}

/* Close Button */
.rlr-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.rlr-modal-close:hover {
    color: #fff;
}

/* Modal Header */
.rlr-modal-header {
    padding: 40px 40px 20px;
    border-bottom: 2px solid #2d2d2d;
}

.rlr-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.rlr-modal-header p {
    margin: 0;
    font-size: 16px;
    color: #aaa;
}

/* Modal Body */
.rlr-modal-body {
    padding: 40px;
}

/* Form Group */
.rlr-form-group {
    margin-bottom: 30px;
}

.rlr-question-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

/* Textarea */
.rlr-modal textarea {
    width: 100%;
    padding: 16px;
    background: #111;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.rlr-modal textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.rlr-char-count {
    text-align: right;
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* Radio Group */
.rlr-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rlr-radio-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #111;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rlr-radio-option:hover {
    border-color: #444;
    background: #1a1a1a;
}

.rlr-radio-option input[type="radio"] {
    margin: 0;
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.rlr-radio-option input[type="radio"]:checked + span {
    color: #ff6b35;
    font-weight: 600;
}

.rlr-radio-option span {
    color: #fff;
    font-size: 16px;
}

/* Form Actions */
.rlr-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.rlr-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rlr-btn-primary {
    background: #ff6b35;
    color: #fff;
}

.rlr-btn-primary:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.rlr-btn-primary:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rlr-btn-secondary {
    background: transparent;
    color: #999;
    border: 2px solid #444;
}

.rlr-btn-secondary:hover {
    color: #fff;
    border-color: #666;
}

/* Privacy Note */
.rlr-privacy-note {
    margin-top: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Success Message */
.rlr-success-message {
    text-align: center;
    padding: 60px 20px;
}

.rlr-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: block;
}

.rlr-success-circle {
    stroke: #5cb85c;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: rlr-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.rlr-success-check {
    stroke: #5cb85c;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: rlr-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes rlr-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.rlr-success-message h3 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: #5cb85c;
}

.rlr-success-message p {
    margin: 0;
    font-size: 16px;
    color: #aaa;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .rlr-modal-header,
    .rlr-modal-body {
        padding: 24px;
    }

    .rlr-modal-header h2 {
        font-size: 22px;
    }

    .rlr-question-label {
        font-size: 16px;
    }

    .rlr-form-actions {
        flex-direction: column;
    }

    .rlr-btn {
        width: 100%;
    }
}
