/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header Styles */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4ade80, #177d71);
    border-radius: 8px;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 2px;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.support-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(23, 125, 113, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(23, 125, 113, 0.2);
}

.support-contact i {
    color: #177d71;
    font-size: 14px;
}

.support-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.support-number {
    color: #177d71;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.support-number:hover {
    color: #0f5a52;
}

.support-hours {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link.active {
    color: #177d71;
}

.nav-link:hover {
    color: #177d71;
}

.search-container {
    position: relative;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 14px;
}

.search-input {
    padding: 8px 12px 8px 36px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 14px;
    width: 200px;
    background: #f9f9f9;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #177d71;
    background: #fff;
    width: 240px;
}

/* Breadcrumb Styles */
.breadcrumb-container {
    background: #f9f9f9;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #177d71;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.current {
    color: #666;
}

.breadcrumb-separator {
    color: #999;
}

/* Main Content Styles */
.main-content {
    padding: 40px 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.required-note {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
}

/* Form Styles */
.support-form {
    background: #fff;
    border-radius: 8px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-label.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #177d71;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-input:focus-visible {
    border-color: #177d71;
}

.field-instruction {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Rich Text Editor Styles */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-select {
    padding: 6px 8px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.toolbar-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.toolbar-btn.active {
    background: #177d71;
    color: #fff;
    border-color: #177d71;
}

.editor-content {
    min-height: 200px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 0 0 6px 6px;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.2s;
}

.editor-content:focus {
    border-color: #177d71;
}

.editor-content p {
    margin-bottom: 12px;
}

.editor-content p:last-child {
    margin-bottom: 0;
}

/* Submit Button */
.submit-btn {
    background: #177d71;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}

.submit-btn:hover {
    background: #16a34a;
}

.submit-btn:active {
    background: #15803d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .support-contact {
        order: -1;
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .search-input {
        width: 160px;
    }
    
    .search-input:focus {
        width: 180px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .editor-toolbar {
        gap: 8px;
        padding: 8px 12px;
    }
    
    .toolbar-group {
        gap: 2px;
    }
    
    .toolbar-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .header-container,
    .breadcrumb,
    .container {
        padding: 0 16px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .support-contact {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 12px 16px;
    }
    
    .support-text,
    .support-hours {
        font-size: 10px;
    }
    
    .support-number {
        font-size: 13px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .search-input {
        width: 140px;
    }
    
    .search-input:focus {
        width: 160px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .editor-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .toolbar-group {
        gap: 4px;
    }
    
    .submit-btn {
        width: 100%;
    }
}

/* Focus styles for accessibility */
.form-input:focus-visible,
.editor-content:focus-visible,
.toolbar-btn:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid #177d71;
    outline-offset: 2px;
}

/* Custom scrollbar for editor */
.editor-content::-webkit-scrollbar {
    width: 8px;
}

.editor-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.editor-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.editor-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
