/* ========================================================
   page-contact-feedback.css
   Contact & Feedback Page Styles
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #1688d1;
  --color-primary-dark: #0c5fa8;
  
  --color-success: #2e7d32;
  --color-success-bg: #e8f5e9;
  
  --color-danger: #cc1f1f;
  --color-danger-bg: #ffecec;
  
  --color-text: #181c20;
  --color-text-secondary: #5a646e;
  --color-label: #0b2940; 
  --color-border: #dee2e6;
  
  --color-bg: #f9f9fb;
  --color-surface: #ffffff;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

/* PAGE LAYOUT */
.contact-feedback-main {
    background: var(--color-bg);
    min-height: 100vh;
    padding: 40px 20px;
    font-family: "Inter", sans-serif;
}

.container.contact-feedback-wrapper,
.contact-feedback-wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
}

/* =========================================================================
   HEADER SECTION
   ========================================================================= */

.form-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: 50%;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.form-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.form-header p {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* =========================================================================
   MESSAGES
   ========================================================================= */

.message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.success-message {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid #a5d6a7;
}

.error-message {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid #f5a3a3;
}

/* =========================================================================
   LOGGED IN NOTICE
   ========================================================================= */

.logged-in-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: #0369a1;
    margin-bottom: 20px;
}

.logged-in-notice svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* =========================================================================
   FORM STYLES
   ========================================================================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-label);
}

.form-group .required {
    color: var(--color-danger);
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 16px;
    color: var(--color-text);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 136, 209, 0.1);
    outline: none;
}

.form-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-text);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    resize: vertical;
    line-height: 1.6;
}

.field-note {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* =========================================================================
   SUBMIT BUTTON
   ========================================================================= */

.form-actions {
    margin-top: 8px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 24px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(22, 136, 209, 0.3);
}

.btn-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 767px) {
    .container.contact-feedback-wrapper {
        padding: 24px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .contact-feedback-main {
        padding: 0;
        background: #fff;
    }
    
    .form-header h1 {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
    }
    
    .header-icon svg {
        width: 32px;
        height: 32px;
    }
}
