/*
 * App Feedback Website Styles
 * Based on Contact_page.md design specifications
 * =============================================
 */

/* ========================================
   CSS Variables (Color Palette)
   ======================================== */
:root {
    /* Primary accent - teal */
    --primary-accent: #1abc9c;
    --primary-accent-hover: #16a085;

    /* Status colors */
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-border: #c3e6cb;

    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-border: #f5c6cb;

    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --warning-border: #ffc107;

    /* Neutral colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --background: #ffffff;
    --border-color: #dddddd;
    --input-focus: #1abc9c;
}

/* ========================================
   Base Styles & Typography
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    color: var(--text-primary);
}

h2 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-accent-hover);
}

/* ========================================
   Layout - Two Column (Sidebar + Content)
   ======================================== */
.page-container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sidebar {
    flex: 0 0 280px;
    padding-right: 40px;
}

.content {
    flex: 1;
    max-width: 700px;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
        padding: 20px 15px;
    }

    .sidebar {
        flex: none;
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .content {
        max-width: 100%;
    }
}

/* ========================================
   Header Component
   ======================================== */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    color: var(--primary-accent);
}

.page-header .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ========================================
   Form Components
   ======================================== */
.feedback-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group .optional {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Form Input Styling - per Contact_page.md */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    background-color: var(--background);
}

.form-control:focus {
    border-color: var(--input-focus);
    outline: none;
}

.form-control::placeholder {
    color: #999999;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   Button Styling - per Contact_page.md
   ======================================== */
.btn-submit {
    background: transparent;
    border: 2px dashed var(--primary-accent);
    color: var(--primary-accent);
    padding: 12px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-submit:hover {
    background: var(--primary-accent);
    color: white;
    border-style: solid;
}

.btn-submit:focus {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Status Messages - per Contact_page.md
   ======================================== */
.status-message {
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    display: none;
}

.status-message.visible {
    display: block;
}

.status-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.status-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.status-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

/* ========================================
   Footer Component
   ======================================== */
.page-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ========================================
   App List (Index Page)
   ======================================== */
.app-list {
    list-style: none;
    margin-top: 20px;
}

.app-list li {
    margin-bottom: 15px;
}

.app-list a {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.app-list a:hover {
    border-color: var(--primary-accent);
    background-color: rgba(26, 188, 156, 0.05);
}

/* ========================================
   Intro Section
   ======================================== */
.intro-text {
    margin-bottom: 30px;
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 1.2rem;
}

/* ========================================
   Navigation
   ======================================== */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.back-link::before {
    content: "← ";
}

/* ========================================
   Accessibility Focus States
   ======================================== */
*:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-accent);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}