/* RST Utisci Gostiju - Frontend Styles */

/* ===== Form Modal ===== */
.rst-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.rst-form-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.rst-form-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.rst-form-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.rst-form-modal-close:hover {
    background: #E86850;
    color: #ffffff;
    transform: rotate(90deg);
}

.rst-form-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px 0;
    text-align: center;
}

/* ===== Form Styles ===== */
.rst-utisak-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rst-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rst-form-group {
    display: flex;
    flex-direction: column;
}

.rst-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.rst-form-group input[type="text"],
.rst-form-group input[type="email"],
.rst-form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.rst-form-group input:focus,
.rst-form-group textarea:focus {
    outline: none;
    border-color: #E86850;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(232, 104, 80, 0.1);
}

.rst-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* File Upload */
.rst-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.rst-file-label:hover {
    border-color: #E86850;
    background: #fff5f3;
}

.rst-file-icon {
    font-size: 24px;
}

.rst-file-text {
    font-size: 14px;
    color: #666;
}

.rst-file-preview {
    margin-top: 15px;
    position: relative;
    display: inline-block;
}

.rst-file-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.rst-file-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #E86850;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
}

.rst-file-remove:hover {
    background: #d15540;
    transform: scale(1.1);
}

/* Checkbox */
.rst-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    flex-direction: row !important;
}

.rst-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #E86850;
}

.rst-checkbox-group span {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Submit Button */
.rst-form-submit-btn,
.rst-form-trigger-btn {
    padding: 15px 35px;
    background: #E86850;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 104, 80, 0.3);
}

.rst-form-submit-btn:hover,
.rst-form-trigger-btn:hover {
    background: #d15540;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 104, 80, 0.4);
}

.rst-form-submit-btn:active,
.rst-form-trigger-btn:active {
    transform: translateY(0);
}

.rst-form-submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.rst-btn-loader {
    display: inline-block;
}

/* Messages */
.rst-form-messages {
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.rst-form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.rst-form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===== Grid Layout ===== */
.rst-utisci-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.rst-grid-columns-1 {
    grid-template-columns: 1fr;
}

.rst-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.rst-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.rst-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Testimonial Card */
.rst-utisak-card {
    position: relative;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.rst-utisak-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Quote Icon */
.rst-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #E86850;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.rst-quote-icon svg {
    width: 30px;
    height: auto;
}

/* Header */
.rst-utisak-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rst-utisak-avatar {
    flex-shrink: 0;
}

.rst-utisak-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f5f5;
}

.rst-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E86850, #f39c86);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
}

.rst-utisak-meta {
    flex: 1;
}

/* Rating */
.rst-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
}

.rst-rating-star {
    color: #E86850;
    font-size: 18px;
}

/* Name & Role */
.rst-utisak-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.rst-utisak-role {
    font-size: 14px;
    color: #999;
    margin: 0;
    font-weight: 500;
}

/* Content */
.rst-utisak-text {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .rst-form-modal-content {
        padding: 30px 20px;
    }
    
    .rst-form-row {
        grid-template-columns: 1fr;
    }
    
    .rst-grid-columns-2,
    .rst-grid-columns-3,
    .rst-grid-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .rst-utisak-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rst-form-modal-title {
        font-size: 22px;
    }
    
    .rst-utisak-card {
        padding: 20px;
    }
}
