/* Modern Comment Form Styles */
:root {
    --comment-primary: #081C9E;
    --comment-secondary: #6B72B8;
    --comment-white: #ffffff;
    --comment-light: #f8f9fa;
    --comment-border: #e9ecef;
    --comment-shadow: 0 4px 20px rgba(8, 28, 158, 0.08);
    --comment-radius: 16px;
    --comment-star: #ffc107;
}

.bd-write {
    background: var(--comment-white);
    border-radius: var(--comment-radius);
    box-shadow: var(--comment-shadow);
    padding: 32px 24px;
    margin: 32px 0;
    border: 1px solid var(--comment-border);
    position: relative;
    overflow: hidden;
}

.bd-write::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--comment-primary) 0%, var(--comment-secondary) 100%);
}

.bd-write h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--comment-primary);
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

.bd-write h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--comment-primary), var(--comment-secondary));
    border-radius: 2px;
}

/* Star Rating Modern Styles */
.bd-wstar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--comment-light);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.bd-wstar:hover {
    border-color: var(--comment-secondary);
    background: rgba(107, 114, 184, 0.05);
}

.bd-wstar .star-item {
    display: none;
}

.bd-wstar label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bd-wstar label:hover,
.bd-wstar label:hover ~ label,
.bd-wstar .star-item:checked ~ label {
    color: var(--comment-star);
    transform: scale(1.1);
}

.bd-wstar label:hover {
    animation: starBounce 0.5s ease-in-out;
}

@keyframes starBounce {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

/* Form Styles */
.spform {
    max-width: 100%;
}

.wd50 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.wd50 > div {
    flex: 1;
    min-width: 250px;
}

.wd100 {
    margin-bottom: 20px;
}

.glabel {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--comment-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ginput {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--comment-border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--comment-white);
    box-sizing: border-box;
    display: block;
}

.ginput:focus {
    outline: none;
    border-color: var(--comment-secondary);
    box-shadow: 0 0 0 3px rgba(107, 114, 184, 0.1);
    transform: translateY(-1px);
}

.ginput:hover {
    border-color: var(--comment-secondary);
}

.kptextarea2 {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid var(--comment-border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--comment-white);
    box-sizing: border-box;
}

.kptextarea2:focus {
    outline: none;
    border-color: var(--comment-secondary);
    box-shadow: 0 0 0 3px rgba(107, 114, 184, 0.1);
    transform: translateY(-1px);
}

.kptextarea2:hover {
    border-color: var(--comment-secondary);
}

.gdbutton {
    text-align: center;
    margin-top: 24px;
}

.gdbutton .btn100 {
    background: linear-gradient(135deg, var(--comment-primary) 0%, var(--comment-secondary) 100%);
    color: var(--comment-white);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    display: inline-block;
}

.gdbutton .btn100::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.gdbutton .btn100:hover::before {
    left: 100%;
}

.gdbutton .btn100:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 28, 158, 0.3);
}

.gdbutton .btn100:active {
    transform: translateY(0);
}

/* Response Messages */
#responseCommentForm {
    margin-bottom: 20px;
    padding: 0;
    min-height: 0;
}

#responseCommentForm .alert {
    padding: 16px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    margin-bottom: 16px;
}

#responseCommentForm .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

#responseCommentForm .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bd-write {
        padding: 24px 16px;
        margin: 24px 0;
        border-radius: 12px;
    }
    
    .bd-write h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .wd50 {
        flex-direction: column;
        gap: 16px;
    }
    
    .wd50 > div {
        min-width: auto;
        flex: none;
    }
    
    .bd-wstar {
        padding: 12px;
    }
    
    .bd-wstar label {
        font-size: 24px;
    }
    
    .ginput,
    .kptextarea2 {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .kptextarea2 {
        min-height: 100px;
    }
    
    .gdbutton .btn100 {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Loading State */
.gdbutton .btn100.loading {
    position: relative;
    color: transparent;
}

.gdbutton .btn100.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility */
.ginput:focus,
.kptextarea2:focus,
.gdbutton .btn100:focus {
    outline: 2px solid var(--comment-secondary);
    outline-offset: 2px;
}

.bd-wstar label:focus {
    outline: 2px solid var(--comment-secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form Validation */
.ginput.error,
.kptextarea2.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.ginput.success,
.kptextarea2.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
} 