/* ============================================
   COMAF - Frontend Styles
   ============================================ */

.comaf-review-form-wrapper {
    margin: 40px 0;
    padding: 0 15px;
}

.comaf-review-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.comaf-form-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 32px;
    color: #1d2327;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comaf-review-form {
    max-width: 100%;
}

.comaf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.comaf-form-group {
    margin-bottom: 24px;
}

.comaf-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3338;
}

.comaf-form-group .required {
    color: #ef4444;
}

.comaf-form-group input[type="text"],
.comaf-form-group input[type="email"],
.comaf-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comaf-form-group input:focus,
.comaf-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.comaf-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Star Rating */
.comaf-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 25px;
    font-size: 200px;
    margin: 16px 0;
}

.comaf-star-rating input[type="radio"] {
    display: none;
}

.comaf-star-rating label {
    cursor: pointer;
    color: transparent;
    -webkit-text-stroke: 3px #CBD5E0;
    text-stroke: 3px #CBD5E0;
    transition: all 0.3s ease;
    margin: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.comaf-star-rating label:hover,
.comaf-star-rating label:hover ~ label {
    color: #FF8C00;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(255, 140, 0, 0.5));
}

.comaf-star-rating input[type="radio"]:checked ~ label {
    color: #FFD700;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.6));
}

.comaf-rating-text {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    min-height: 28px;
    margin-top: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Submit Button */
.comaf-form-actions {
    margin-top: 32px;
}

.comaf-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.comaf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.comaf-submit-btn:active {
    transform: translateY(0);
}

.comaf-submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.comaf-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: comaf-spin 0.8s linear infinite;
}

@keyframes comaf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.comaf-form-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 24px;
    font-weight: 500;
    text-align: center;
    animation: comaf-fade-in 0.3s ease-out;
}

@keyframes comaf-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comaf-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.comaf-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.comaf-form-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    .comaf-review-form-container {
        padding: 30px 24px;
    }
    
    .comaf-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .comaf-form-title {
        font-size: 24px;
    }
    
    .comaf-star-rating {
        font-size: 90px;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .comaf-review-form-container {
        padding: 24px 20px;
    }
    
    .comaf-star-rating {
        font-size: 80px;
        gap: 14px;
    }
}

