/* ================================
   Greno Estates - Feedback Page Styles
   ================================ */

:root {
    --gr-primary: #1d214f;
    --gr-dark: #333333;
    --gr-light: #f5f5f5;
    --gr-text: #666666;
    --gr-border: #e0e0e0;
    --gr-white: #ffffff;
    --gr-error: #dc3545;
    --gr-success: #28a745;
    --gr-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --gr-transition: all 0.3s ease;
}

/* ================================
   Feedback Section
   ================================ */

.gr-feedback-section {
    padding: 80px 0;
}

.section-padding {
    padding: 80px 0;
}

.gr-feedback-container {
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   Section Header
   ================================ */

.gr-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.gr-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gr-dark);
    margin-bottom: 15px;
}

.gr-section-description {
    font-size: 16px;
    color: var(--gr-text);
    line-height: 1.8;
    margin: 0;
}

/* ================================
   Feedback Form Styling
   ================================ */

.gr-feedback-form-wrapper {
    background: var(--gr-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gr-feedback-form {
    display: grid;
    gap: 24px;
}

.gr-form-group {
    display: flex;
    flex-direction: column;
}

.gr-form-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--gr-dark);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.gr-required {
    color: var(--gr-error);
    font-weight: 700;
}

.gr-optional {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

.gr-form-input,
.gr-form-textarea,
.gr-captcha-input {
    padding: 14px 18px;
    border: 2px solid var(--gr-border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--gr-dark);
    background: var(--gr-white);
    font-family: inherit;
    transition: var(--gr-transition);
    outline: none;
    letter-spacing: 1px;
}

.gr-form-input:focus,
.gr-form-textarea:focus,
.gr-captcha-input:focus {
    border-color: var(--gr-primary);
    box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.1);
}

.gr-form-input::placeholder,
.gr-form-textarea::placeholder,
.gr-captcha-input::placeholder {
    color: #999;
}

.gr-form-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================================
   Error and Success Messages
   ================================ */

.gr-error-message {
    font-size: 13px;
    color: var(--gr-error);
    margin-top: 6px;
    display: none;
}

.gr-error-message.show {
    display: block;
}

.gr-form-input.error,
.gr-form-textarea.error,
.gr-captcha-input.error {
    border-color: var(--gr-error);
    background: rgba(220, 53, 69, 0.05);
}

.gr-form-input.success,
.gr-form-textarea.success {
    border-color: var(--gr-success);
}

/* ================================
   File Upload
   ================================ */

.gr-file-upload-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.gr-file-input {
    display: none;
}

.gr-file-upload-area {
    border: 2px dashed var(--gr-border);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(249, 168, 37, 0.03);
    cursor: pointer;
    transition: var(--gr-transition);
}

.gr-file-upload-area:hover {
    border-color: var(--gr-primary);
    background: rgba(249, 168, 37, 0.08);
}

.gr-file-upload-area i {
    font-size: 36px;
    color: var(--gr-primary);
    margin-bottom: 12px;
    display: block;
}

.gr-upload-text {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--gr-dark);
    margin-bottom: 8px;
}

.gr-upload-hint {
    display: block;
    font-size: 13px;
    color: var(--gr-text);
}

/* ================================
   Image Preview
   ================================ */

.gr-image-preview-wrapper {
    margin-top: 20px;
    margin-bottom: 16px;
}

.gr-image-preview-container {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gr-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gr-remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--gr-error);
    color: var(--gr-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--gr-transition);
}

.gr-remove-image-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ================================
   Character Count
   ================================ */

.gr-character-count {
    font-size: 12px;
    color: var(--gr-text);
    margin-top: 6px;
    text-align: right;
}

.gr-character-count.warning {
    color: #ff6b6b;
    font-weight: 600;
}

/* ================================
   Captcha Styling
   ================================ */

.gr-captcha-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.gr-captcha-display {
    flex: 1;
    background: linear-gradient(135deg, rgba(249, 168, 37, 0.1), rgba(249, 168, 37, 0.05));
    border: 2px solid var(--gr-border);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gr-dark);
    user-select: none;
}

.gr-captcha-num1,
.gr-captcha-num2 {
    background: var(--gr-primary);
    color: var(--gr-white);
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.gr-captcha-operator {
    font-size: 16px;
    font-weight: 600;
    color: var(--gr-text);
}

.gr-captcha-question {
    font-size: 20px;
    color: var(--gr-dark);
}

.gr-captcha-refresh {
    width: 44px;
    height: 44px;
    border: 2px solid var(--gr-border);
    border-radius: 8px;
    background: var(--gr-white);
    color: var(--gr-primary);
    cursor: pointer;
    transition: var(--gr-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.gr-captcha-refresh:hover {
    border-color: var(--gr-primary);
    background: rgba(249, 168, 37, 0.1);
    transform: rotate(180deg);
}

.gr-captcha-input {
    text-align: center;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ================================
   Submit Button
   ================================ */

.gr-feedback-btn {
    padding: 16px 40px;
    background: var(--gr-primary);
    color: var(--gr-white);
    border: none;
    letter-spacing: 1px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gr-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.gr-feedback-btn:hover {
    background: var(--gr-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 168, 37, 0.3);
}

.gr-feedback-btn:active {
    transform: translateY(0);
}

/* ================================
   Form Messages
   ================================ */

.gr-form-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    font-size: 15px;
    font-weight: 500;
}

.gr-form-message.success {
    display: block;
    background: rgba(40, 167, 69, 0.1);
    color: var(--gr-success);
    border: 2px solid var(--gr-success);
}

.gr-form-message.error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    color: var(--gr-error);
    border: 2px solid var(--gr-error);
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 1199px) {
    .gr-section-title {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .gr-feedback-section {
        padding: 60px 0;
    }

    .gr-section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .gr-feedback-section {
        padding: 40px 0;
    }

    .gr-feedback-form-wrapper {
        padding: 30px 20px;
    }

    .gr-section-title {
        font-size: 26px;
    }

    .gr-section-description {
        font-size: 14px;
    }

    .gr-feedback-form {
        gap: 18px;
    }

    .gr-form-group {
        gap: 6px;
    }

    .gr-form-input,
    .gr-form-textarea,
    .gr-captcha-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .gr-form-textarea {
        min-height: 120px;
    }

    .gr-file-upload-area {
        padding: 30px 15px;
    }

    .gr-file-upload-area i {
        font-size: 28px;
    }

    .gr-upload-text {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .gr-breadcrumb-sub-title h1 {
        font-size: 24px;
    }

    .gr-breadcrumb-items {
        gap: 10px;
    }

    .gr-breadcrumb-items li {
        font-size: 13px;
    }

    .gr-feedback-form-wrapper {
        padding: 20px 15px;
    }

    .gr-section-title {
        font-size: 22px;
    }

    .gr-section-description {
        font-size: 13px;
    }

    .gr-form-label {
        font-size: 13px;
    }

    .gr-form-input,
    .gr-form-textarea {
        padding: 11px 14px;
        font-size: 13px;
    }

    .gr-form-textarea {
        min-height: 100px;
    }

    .gr-file-upload-area {
        padding: 25px 12px;
    }

    .gr-file-upload-area i {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .gr-upload-text {
        font-size: 13px;
    }

    .gr-image-preview-container {
        width: 100px;
        height: 100px;
    }

    .gr-remove-image-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .gr-feedback-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .gr-character-count {
        font-size: 11px;
    }

    .gr-captcha-wrapper {
        gap: 10px;
    }

    .gr-captcha-display {
        padding: 12px 14px;
        font-size: 16px;
        gap: 10px;
    }

    .gr-captcha-num1,
    .gr-captcha-num2 {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .gr-captcha-operator {
        font-size: 14px;
    }

    .gr-captcha-refresh {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .gr-captcha-input {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .gr-feedback-form-wrapper {
        padding: 15px 12px;
        border-radius: 8px;
    }

    .gr-section-title {
        font-size: 18px;
    }

    .gr-section-description {
        font-size: 12px;
    }

    .gr-form-label {
        font-size: 12px;
    }

    .gr-form-input,
    .gr-form-textarea,
    .gr-captcha-input {
        padding: 10px 12px;
        font-size: 12px;
    }

    .gr-feedback-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .gr-captcha-wrapper {
        flex-wrap: wrap;
    }

    .gr-captcha-display {
        width: 100%;
        order: 1;
        font-size: 14px;
    }

    .gr-captcha-refresh {
        width: 38px;
        height: 38px;
        font-size: 12px;
        order: 2;
    }

    .gr-captcha-input {
        width: 100%;
        order: 3;
    }
}

/* ================================
   Animation Classes
   ================================ */

.wow {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.wow.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
