/* Feedback Form Styles */

.ph-feedback-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.ph-feedback-header {
    padding: 25px 0;
    border-bottom: none;
    text-align: center;
}

.ph-feedback-header-title {
    font-size: 24px;
    font-weight: 600;
    color: #212245;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.ph-feedback-header-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    letter-spacing: 1px;
}

.ph-feedback-body {
    padding: 0px 0;
}

.ph-form-group {
    margin-bottom: 20px;
}

.ph-form-group:last-child {
    margin-bottom: 0;
}

.ph-form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #212245;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.ph-form-input,
.ph-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.ph-form-input:focus,
.ph-form-textarea:focus {
    outline: none;
    border-color: #0b71b9;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.ph-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.ph-image-upload {
    position: relative;
}

.ph-image-upload-input {
    display: none;
}

.ph-image-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 1px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.ph-image-upload-btn:hover {
    border-color: #0b71b9;
    background: #fff5f5;
    color: #0b71b9;
}

.ph-image-preview-container {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.ph-image-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 5px;
    overflow: hidden;
    background: #f5f5f5;
}

.ph-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: #0b71b9;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ph-image-preview:hover .ph-image-preview-remove {
    opacity: 1;
}

.ph-captcha-container {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.ph-captcha-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ph-captcha-text {
    flex: 1;
    padding: 12px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
    color: #0b71b9;
    user-select: none;
}

.ph-captcha-refresh {
    width: 45px;
    height: 45px;
    background: #0b71b9;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.ph-captcha-refresh:hover {
    background: #0b71b9;
}

.ph-captcha-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 10px;
    letter-spacing: 1px;
}

.ph-captcha-input:focus {
    outline: none;
    border-color: #0b71b9;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.ph-feedback-button-group {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.ph-feedback-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.ph-feedback-btn-submit {
    background: #0b71b9;
    color: white;
    letter-spacing: 1px;
}

.ph-feedback-btn-submit:hover {
    background: #0b71b9;
}

.ph-feedback-btn-reset {
    background: #f5f5f5;
    color: #666;
}

.ph-feedback-btn-reset:hover {
    background: #efefef;
}

.ph-success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.ph-error-message {
    display: none;
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.ph-error-message.show,
.ph-success-message.show {
    display: block;
}

@media (max-width: 576px) {
    .ph-feedback-body {
        padding: 20px;
    }

    .ph-feedback-button-group {
        flex-direction: column;
    }

    .ph-image-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .ph-captcha-box {
        flex-direction: column;
    }

    .ph-captcha-refresh {
        width: 100%;
    }
}

/* Toast Notification Styles */
.ph-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 9999;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-in-out;
    font-weight: 500;
}

.ph-notification.success {
    background-color: #28a745;
    color: white;
    border-left: 4px solid #1e7e34;
}

.ph-notification.error {
    background-color: #dc3545;
    color: white;
    border-left: 4px solid #c82333;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.ph-notification.fadeOut {
    animation: slideOut 0.3s ease-in-out forwards;
}
