/* Support Pages Styles */

/* Page Header with Blue Background */
.page-header {
    background-color: #3b82f6;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #2563eb;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease-out forwards;
}

.page-header .lead {
    font-size: 1.25rem;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Common styles for all support pages */
.support-section {
    padding: 80px 0;
}

/* Row and column layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.justify-content-center {
    justify-content: center;
}

.col-lg-5,
.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    .col-lg-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
}

.d-none {
    display: none;
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block;
    }
}

.support-info {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

.dark .support-info {
    background-color: #1f2937;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.support-info h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1e293b;
    text-align: center;
}

.dark .support-info h2 {
    color: #f3f4f6;
}

.support-process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.process-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dark .process-item {
    background-color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark .process-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.process-number {
    width: 32px;
    height: 32px;
    background-color: #1d4ed8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.dark .process-number {
    background-color: #3b82f6;
}

.process-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #334155;
}

.dark .process-item h4 {
    color: #f3f4f6;
}

.process-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dark .process-item p {
    color: #d1d5db;
}

/* Support contact info */
.support-contact-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.dark .support-contact-info {
    border-top-color: #374151;
}

.support-contact-info h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .support-contact-info h3 {
    color: #f3f4f6;
}

.contact-methods {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
}

.dark .contact-method {
    background-color: #374151;
}

.contact-method i {
    font-size: 1.25rem;
    color: #1d4ed8;
    margin-top: 0.25rem;
}

.dark .contact-method i {
    color: #3b82f6;
}

.contact-method h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .contact-method h5 {
    color: #f3f4f6;
}

.contact-method p {
    margin-bottom: 0.25rem;
    color: #4b5563;
}

.dark .contact-method p {
    color: #e5e7eb;
}

.contact-method .hours {
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .contact-method .hours {
    color: #9ca3af;
}

/* Existing ticket section */
.existing-ticket {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f3f4f6;
    border-radius: 8px;
    text-align: center;
}

.dark .existing-ticket {
    background-color: #374151;
}

.existing-ticket h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .existing-ticket h4 {
    color: #f3f4f6;
}

.existing-ticket p {
    margin-bottom: 1rem;
    color: #6b7280;
}

.dark .existing-ticket p {
    color: #d1d5db;
}

/* Form container */
.form-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.dark .form-container {
    background-color: #1f2937;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.dark .form-container h3 {
    color: #f3f4f6;
}

.form-container p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.dark .form-container p {
    color: #d1d5db;
}

/* Form styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

.form-row .form-group {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
    }
    
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4b5563;
}

.dark .form-group label {
    color: #e5e7eb;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dark .form-control {
    color: #f3f4f6;
    background-color: #374151;
    border-color: #4b5563;
}

.form-control:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.dark .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25);
}

.form-control::placeholder {
    color: #9ca3af;
}

.dark .form-control::placeholder {
    color: #6b7280;
}

.required {
    color: #ef4444;
}

/* Form check */
.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-top: 0.3rem;
    margin-right: 0.75rem;
}

.form-check-label {
    color: #6b7280;
    font-size: 0.95rem;
}

.dark .form-check-label {
    color: #d1d5db;
}

/* Button styles */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    color: #fff;
    background-color: #1d4ed8;
    border: 1px solid #1d4ed8;
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

.dark .btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.dark .btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-outline {
    color: #1d4ed8;
    background-color: transparent;
    border: 1px solid #1d4ed8;
}

.btn-outline:hover {
    color: #fff;
    background-color: #1d4ed8;
}

.dark .btn-outline {
    color: #3b82f6;
    border-color: #3b82f6;
}

.dark .btn-outline:hover {
    color: #fff;
    background-color: #3b82f6;
}

.btn i {
    margin-right: 0.5rem;
}

/* Alert styles */
.alert {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.dark .alert-success {
    color: #d1e7dd;
    background-color: #0f5132;
    border-color: #0a3622;
}

.alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.dark .alert-error {
    color: #f8d7da;
    background-color: #842029;
    border-color: #58151c;
}

/* Form disclaimer */
.form-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.dark .form-disclaimer {
    color: #9ca3af;
}

.form-disclaimer a {
    color: #1d4ed8;
    text-decoration: underline;
}

.dark .form-disclaimer a {
    color: #3b82f6;
}

/* Divider line */
.divider-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
    margin: 0 auto;
    min-height: 400px;
}

.dark .divider-line {
    background: linear-gradient(to bottom, transparent, #4b5563, transparent);
}

/* Track ticket page specific styles */
.track-ticket-section {
    padding: 80px 0;
}

.track-icon {
    width: 64px;
    height: 64px;
    background-color: #dbeafe;
    color: #1d4ed8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.dark .track-icon {
    background-color: #1e3a8a;
    color: #60a5fa;
}

.track-help {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.dark .track-help {
    border-top-color: #374151;
}

.track-help h4 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .track-help h4 {
    color: #f3f4f6;
}

.track-help p {
    margin-bottom: 1rem;
    color: #6b7280;
}

.dark .track-help p {
    color: #d1d5db;
}

.help-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.help-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #f9fafb;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dark .help-option {
    background-color: #374151;
    color: #e5e7eb;
}

.help-option:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.dark .help-option:hover {
    background-color: #4b5563;
}

.help-option i {
    margin-right: 0.75rem;
    color: #1d4ed8;
}

.dark .help-option i {
    color: #3b82f6;
}

.create-new-ticket {
    margin-top: 2rem;
    text-align: center;
}

.create-new-ticket p {
    margin-bottom: 1rem;
    color: #6b7280;
}

.dark .create-new-ticket p {
    color: #d1d5db;
}

/* Ticket Details Page Styles */
.ticket-details-section {
    padding: 80px 0;
}

.ticket-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.dark .ticket-container {
    background-color: #1f2937;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.dark .ticket-header {
    border-bottom-color: #374151;
}

.ticket-id {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.dark .ticket-id {
    color: #f3f4f6;
}

.ticket-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-open {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.status-in-progress {
    background-color: #fff8e1;
    color: #ff8f00;
}

.status-waiting {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.status-resolved {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-closed {
    background-color: #eeeeee;
    color: #616161;
}

.dark .status-open {
    background-color: #1e3a8a;
    color: #bfdbfe;
}

.dark .status-in-progress {
    background-color: #854d0e;
    color: #fef3c7;
}

.dark .status-waiting {
    background-color: #581c87;
    color: #f3e8ff;
}

.dark .status-resolved {
    background-color: #14532d;
    color: #dcfce7;
}

.dark .status-closed {
    background-color: #374151;
    color: #e5e7eb;
}

.ticket-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.dark .info-label {
    color: #9ca3af;
}

.info-value {
    font-weight: 500;
    color: #333;
}

.dark .info-value {
    color: #e5e7eb;
}

.ticket-message {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.dark .ticket-message {
    background-color: #374151;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.message-title {
    font-weight: 600;
    color: #333;
}

.dark .message-title {
    color: #f3f4f6;
}

.message-date {
    font-size: 0.875rem;
    color: #666;
}

.dark .message-date {
    color: #9ca3af;
}

.message-content {
    line-height: 1.6;
}

.ticket-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.priority-low {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.priority-medium {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.priority-high {
    background-color: #fff8e1;
    color: #ff8f00;
}

.priority-critical {
    background-color: #ffebee;
    color: #c62828;
}

.dark .priority-low {
    background-color: #14532d;
    color: #dcfce7;
}

.dark .priority-medium {
    background-color: #1e3a8a;
    color: #bfdbfe;
}

.dark .priority-high {
    background-color: #854d0e;
    color: #fef3c7;
}

.dark .priority-critical {
    background-color: #7f1d1d;
    color: #fee2e2;
}

/* Success Page Styles */
.success-section {
    padding: 80px 0;
    text-align: center;
}

.success-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 3rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.dark .success-container {
    background-color: #1f2937;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.success-icon {
    width: 100px;
    height: 100px;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
}

.dark .success-icon {
    background-color: #14532d;
    color: #86efac;
}

.ticket-info-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.dark .ticket-info-box {
    background-color: #374151;
}

.ticket-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.dark .ticket-number {
    color: #f3f4f6;
}

.ticket-email {
    color: #666;
}

.dark .ticket-email {
    color: #9ca3af;
}

.next-steps {
    margin-top: 2rem;
    text-align: left;
}

.next-steps h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .next-steps h4 {
    color: #f3f4f6;
}

.next-steps ul {
    padding-left: 1.5rem;
    color: #4b5563;
}

.dark .next-steps ul {
    color: #d1d5db;
}

.next-steps li {
    margin-bottom: 0.75rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .divider-line {
        display: none;
    }
    
    .support-info {
        margin-bottom: 2rem;
    }
    
    .ticket-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .support-section,
    .track-ticket-section,
    .ticket-details-section,
    .success-section {
        padding: 40px 0;
    }
    
    .form-container,
    .support-info,
    .ticket-container,
    .success-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .ticket-header {
        flex-direction: column;
    }
    
    .ticket-header > div:last-child {
        margin-top: 1rem;
    }
}

/* ===============================================
   File Upload Styles
   =============================================== */

.file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.file-upload-area.has-file {
    border-color: #10b981;
    background: #ecfdf5;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #6b7280;
}

.file-upload-placeholder i {
    font-size: 2rem;
    color: #9ca3af;
}

.file-upload-area:hover .file-upload-placeholder i,
.file-upload-area.dragover .file-upload-placeholder i {
    color: #3b82f6;
}

.file-preview-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 15px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    gap: 15px;
}

.dark .file-preview-box {
    background: #1e3a2f;
    border-color: #22c55e;
}

.file-preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-preview-content img {
    max-width: 120px;
    max-height: 80px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    object-fit: cover;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #166534;
}

.dark .file-info {
    color: #86efac;
}

.file-info i {
    font-size: 1.5rem;
    color: #22c55e;
}

.file-info i.fa-file-pdf {
    color: #ef4444;
}

.file-info i.fa-file-word {
    color: #3b82f6;
}

#fileName {
    font-weight: 600;
    word-break: break-all;
}

#fileSize {
    color: #6b7280;
    font-size: 0.875rem;
}

.btn-remove-file {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-remove-file:hover {
    background: #fecaca;
}

.dark .btn-remove-file {
    background: #450a0a;
    color: #fca5a5;
}

.dark .btn-remove-file:hover {
    background: #7f1d1d;
}
