/* =====================================================
   Feedback Page - Modern & Responsive Styles
   ===================================================== */

/* Main Feedback Section */
.ed-feedback-main {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
    min-height: 100vh;
}

.ed-feedback-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="%23ffffff" fill-opacity="0.1"/></svg>');
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}

/* Feedback Wrapper */
.ed-feedback-wrapper {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Form Container */
.ed-feedback-form-container {
    background: white;
    padding: 60px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.ed-feedback-form-container:hover {
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* Form Title and Subtitle */
.ed-form-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2d2d2d;
    margin-bottom: 15px;
    font-family: var(--title-font);
}

.ed-form-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 40px;
    letter-spacing: 1px;
    line-height: 1.6;
    font-family: var(--title-font);
}

/* Form Styles */
.ed-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Form Group */
.ed-form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Form Label */
.ed-form-label {
    font-size: 16px;
    font-weight: 400;
    color: #2d2d2d;
    margin-bottom: 8px;
    font-family: var(--title-font);
    text-transform: capitalize;
    letter-spacing: 1px;
}

/* Form Inputs */
.ed-form-input,
.ed-form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    letter-spacing: 1px;
    font-family: var(--title-font);
    color: #2d2d2d;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    outline: none;
}

.ed-form-input::placeholder,
.ed-form-textarea::placeholder {
    color: #999;
}

.ed-form-input:focus,
.ed-form-textarea:focus {
    border-color: #007bff;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.ed-form-input.error,
.ed-form-textarea.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.ed-form-input.success,
.ed-form-textarea.success {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.ed-form-textarea {
    resize: vertical;
    min-height: 150px;
    font-family: var(--title-font);
}

/* File Input */
.ed-file-input {
    padding: 12px 18px;
    cursor: pointer;
    letter-spacing: 1px;
}

.ed-file-input::file-selector-button {
    background: linear-gradient(135deg, #ffb200 0%, #e73a8c 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.ed-file-input::file-selector-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Image Upload Container */
.ed-image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Image Preview Container */
.ed-image-preview-container {
    margin-top: 15px;
}

.ed-preview-wrapper {
    position: relative;
    display: inline-block;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}

.ed-preview-image {
    display: block;
    max-width: 300px;
    height: auto;
    border-radius: 6px;
}

.ed-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ed-preview-remove:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* Error Message */
.ed-error-message {
    font-size: 12px;
    color: #dc3545;
    letter-spacing: 1px;
    margin-top: 6px;
    display: none;
    animation: slideDown 0.3s ease-out;
    font-weight: 500;
}

.ed-error-message.show {
    display: block;
}

/* CAPTCHA Styles */
.ed-captcha-group {
    gap: 15px;
}

.ed-captcha-container {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.ed-captcha-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ed-captcha-code {
    font-size: 24px;
    font-weight: bold;
    color: #2d2d2d;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    user-select: none;
    min-width: 120px;
}

.ed-captcha-refresh {
    background: linear-gradient(135deg, #ffb200 0%, #e73a8c 100%);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ed-captcha-refresh:hover {
    transform: rotate(180deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.ed-captcha-input {
    text-transform: none;
    letter-spacing: 2px;
}

/* Submit Button */
.ed-submit-group {
    padding-top: 10px;
}

.ed-submit-btn {
    background: linear-gradient(135deg, #ffb200 0%, #e73a8c 100%);
    color: white;
    border: none;
    letter-spacing: 1px;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    font-family: var(--title-font);
    width: 100%;
}

.ed-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

.ed-submit-btn:active {
    transform: translateY(-1px);
}

.ed-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alert Notification Styles */
.ed-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 18px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--title-font);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.4s ease-out;
    z-index: 9999;
    max-width: 400px;
}

.ed-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ed-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ed-alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.ed-alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ed-alert-close:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ed-feedback-main {
        padding: 60px 0;
    }

    .ed-feedback-form-container {
        padding: 40px 25px;
    }

    .ed-form-title {
        font-size: 28px;
    }

    .ed-form-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .ed-form-input,
    .ed-form-textarea {
        padding: 12px 15px;
        font-size: 14px;
    }

    .ed-preview-image {
        max-width: 250px;
    }

    .ed-submit-btn {
        padding: 14px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ed-feedback-main {
        padding: 40px 0;
    }

    .ed-feedback-form-container {
        padding: 25px 15px;
    }

    .ed-form-title {
        font-size: 24px;
    }

    .ed-form-subtitle {
        font-size: 13px;
    }

    .ed-form-label {
        font-size: 12px;
    }

    .ed-form-input,
    .ed-form-textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .ed-form-group {
        gap: 15px;
    }

    .ed-preview-image {
        max-width: 200px;
    }

    .ed-captcha-code {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .ed-captcha-refresh {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .ed-alert {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
    }
}
