/* Toast Container */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    max-width: 400px;
}

/* Toast Styles */
.toast {
    min-width: 300px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--green);
}

.toast-error {
    border-left: 4px solid var(--red);
}

.toast-info {
    border-left: 4px solid var(--blue);
}

.toast-body {
    padding: 1rem 1.25rem;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--dark);
}

.btn-close-success {
    background: var(--green);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-close-error {
    background: var(--red);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-close-info {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-close-success:hover,
.btn-close-error:hover,
.btn-close-info:hover {
    opacity: 0.8;
}

/* Alert styling */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 12px;
    position: relative;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(22, 163, 74, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--green);
}

.alert-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(185, 28, 28, 0.1));
    border-color: rgba(220, 53, 69, 0.3);
    color: var(--red);
}

.alert strong {
    font-weight: 700;
    display: inline-block;
    margin: 0.5rem 0;
}

/* Spinner for form submission */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.125em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.75rem;
    height: 0.75rem;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.me-2 {
    margin-right: 0.5rem;
}

/* Contact Page Specific Styles */
.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.6;
}

.contact-link {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--blue);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.social-facebook {
    background: #1877f2;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-youtube {
    background: #ff0000;
}

.social-twitter {
    background: #000000;
}

.social-whatsapp {
    background: #25d366;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-control {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

#contact-hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    color: white;
}

#contact-info {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

#contact-form {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(124, 58, 237, 0.05) 100%);
}

#contact-faq {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Certificates Section Styles */
#certificates {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.certificate-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.certificate-image {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(79, 70, 229, 0.1));
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    max-height: 220px;
    object-fit: contain;
    width: 100%;
}

.certificate-image img:hover {
    transform: scale(1.05);
}

.certificate-info {
    padding: 1.5rem;
    text-align: center;
}

.certificate-info h4 {
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.certificate-info p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Certificate Modal Styles */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.certificate-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.certificate-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
}

.certificate-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.certificate-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
}

.certificate-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.certificate-modal-body {
    padding: 2rem;
    text-align: center;
    max-height: calc(90vh - 120px);
    overflow: auto;
}

.certificate-modal-body img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .contact-card {
        padding: 1.5rem;
    }

    .certificate-info {
        padding: 1rem;
    }

    .contact-form-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Hero section responsive */
    #contact-hero {
        padding: 4rem 0;
    }

    .hero-h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-sub {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Contact cards responsive */
    .contact-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    /* Social links responsive */
    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }

    .social-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Form responsive */
    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-form .form-control {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }

    .contact-form .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }

    /* FAQ responsive */
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .faq-answer-inner {
        font-size: 0.9rem;
    }

    /* Certificates responsive */
    .certificate-card {
        margin-bottom: 1rem;
    }

    .certificate-image {
        min-height: 180px;
        padding: 0.75rem;
    }

    .certificate-info {
        padding: 1rem;
    }

    .certificate-info h4 {
        font-size: 1rem;
    }

    .certificate-info p {
        font-size: 0.85rem;
    }

    /* Modal responsive */
    .certificate-modal-content {
        max-width: 95%;
        max-height: 95%;
        margin: 1rem;
    }

    .certificate-modal-header {
        padding: 1rem;
    }

    .certificate-modal-header h3 {
        font-size: 1.1rem;
    }

    .certificate-modal-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.5rem;
    }

    /* Hero mobile */
    #contact-hero {
        padding: 3rem 0;
    }

    .hero-h1 {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    /* Contact cards mobile */
    .contact-card {
        padding: 1rem;
    }

    .contact-icon {
        width: 36px;
        height: 36px;
    }

    .contact-item {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Form mobile */
    .contact-form-card {
        padding: 1rem;
    }

    .contact-form .row {
        margin: 0;
    }

    .contact-form .col-md-6,
    .contact-form .col-12 {
        padding: 0.25rem 0;
    }

    .contact-form .form-control {
        padding: 0.5rem 0.625rem;
        font-size: 0.85rem;
    }

    .contact-form .form-label {
        font-size: 0.85rem;
    }

    .contact-form select.form-control {
        height: auto;
        min-height: 2.5rem;
    }

    /* Social links mobile */
    .social-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .social-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
        text-align: center;
    }

    /* FAQ mobile */
    .faq-question {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .faq-answer-inner {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    /* Certificates mobile */
    .certificate-image {
        min-height: 150px;
        padding: 0.5rem;
    }

    .certificate-info {
        padding: 0.75rem;
    }

    .certificate-info h4 {
        font-size: 0.95rem;
    }

    .certificate-info p {
        font-size: 0.8rem;
    }

    /* Modal mobile */
    .certificate-modal-content {
        margin: 0.5rem;
        max-height: 98vh;
    }

    .certificate-modal-header {
        padding: 0.75rem;
    }

    .certificate-modal-body {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {

    /* Extra small screens */
    .hero-h1 {
        font-size: 1.75rem;
    }

    .contact-card {
        padding: 0.75rem;
    }

    .contact-form-card {
        padding: 0.75rem;
    }

    .social-link {
        flex: 1 1 100%;
        margin-bottom: 0.25rem;
    }

    .certificate-modal-content {
        margin: 0;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .certificate-modal-header {
        padding: 0.5rem;
    }

    .certificate-modal-body {
        padding: 0.5rem;
    }
}

/* Prevent horizontal scroll globally */
* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* Fix for select dropdown on mobile */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

select.form-control::-ms-expand {
    display: none;
}

/* Email Tracking Page Styles */

/* Hero Section */
#track-hero {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: white;
}

/* Search Section */
#search-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.search-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.search-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 2rem;
}

.search-title svg {
  width: 24px;
  height: 24px;
  color: var(--purple);
}

.search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-input-group {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.search-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.search-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

.search-input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.enter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Loading State */
.search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  color: var(--purple);
}

.search-loading p {
  margin: 0;
  font-weight: 500;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(124, 58, 237, 0.2);
  border-top: 4px solid var(--purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.search-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #dc3545;
  font-weight: 500;
}

/* Results Section */
#results-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.results-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.results-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 2rem;
}

.results-title svg {
  width: 24px;
  height: 24px;
  color: var(--purple);
}

/* Email Details */
.email-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.email-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(79, 70, 229, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}

.tracking-code-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tracking-label {
  font-weight: 600;
  color: var(--purple);
}

.tracking-value {
  background: var(--purple);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.email-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.email-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.email-field.full-width {
  grid-column: 1 / -1;
}

.field-label {
  font-weight: 600;
  color: var(--purple);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-value {
  padding: 1rem;
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 8px;
  color: var(--dark);
  line-height: 1.6;
  word-break: break-word;
}

.message-content {
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.admin-response, .admin-note {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge svg {
  width: 16px;
  height: 16px;
}

.status-active {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-resolved {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-closed {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Help Section */
#help-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

/* FAQ Styles */
.faq-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.open {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(124, 58, 237, 0.05);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--purple);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  #track-hero {
    padding: 4rem 0;
  }
  
  .hero-h1 {
    font-size: 2.5rem;
  }
  
  .search-card {
    padding: 2rem 1.5rem;
  }
  
  .search-input-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-input {
    width: 100%;
  }
  
  .search-btn {
    width: 100%;
    justify-content: center;
  }
  
  .email-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .tracking-code-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .email-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .results-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .search-card {
    padding: 1.5rem 1rem;
  }
  
  .search-title {
    font-size: 1.25rem;
  }
  
  .results-card {
    padding: 1.5rem 1rem;
  }
  
  .field-value {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .tracking-value {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  max-width: 400px;
}

.toast-notification {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
  min-width: 300px;
  max-width: 400px;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-notification.success {
  border-left: 4px solid var(--green);
}

.toast-notification.error {
  border-left: 4px solid var(--red);
}

.toast-notification.info {
  border-left: 4px solid var(--blue);
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon.success {
  color: var(--green);
}

.toast-icon.error {
  color: var(--red);
}

.toast-icon.info {
  color: var(--blue);
}

.toast-message {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--dark);
  word-break: break-word;
}

.toast-close {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.3s ease;
  border-radius: 4px;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--dark);
}

.toast-notification.fade-out {
  opacity: 0;
  transform: translateX(100%);
}

/* Mobile Toast */
@media (max-width: 576px) {
  .toast-container {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .toast-notification {
    min-width: auto;
    max-width: 100%;
    margin-bottom: 0.25rem;
  }
  
  .toast-message {
    font-size: 0.85rem;
  }
}

/* Email Inbox Style Results */
.email-result-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

.email-result-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.email-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
}

.tracking-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.tracking-code svg {
  color: #6b7280;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-badge svg {
  width: 14px;
  height: 14px;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.status-in-progress {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #60a5fa;
}

.status-responded {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}

.status-resolved {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}

.email-details {
  padding: 1.5rem;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.9rem;
  min-width: 120px;
  flex-shrink: 0;
}

.detail-label svg {
  color: #9ca3af;
}

.detail-value {
  flex: 1;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

.message-text {
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 3px solid #e5e7eb;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .email-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
  }
  
  .tracking-code {
    font-size: 0.9rem;
  }
  
  .status-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .email-details {
    padding: 1rem;
  }
  
  .detail-row {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
  
  .detail-label {
    min-width: auto;
    font-size: 0.85rem;
  }
  
  .detail-value {
    font-size: 0.9rem;
  }
  
  .message-text {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .email-header {
    padding: 0.75rem;
  }
  
  .tracking-code {
    font-size: 0.85rem;
  }
  
  .status-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .status-badge svg {
    width: 12px;
    height: 12px;
  }
  
  .email-details {
    padding: 0.75rem;
  }
  
  .detail-row {
    padding: 0.4rem 0;
  }
  
  .detail-label {
    font-size: 0.8rem;
  }
  
  .detail-value {
    font-size: 0.85rem;
  }
  
  .message-text {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}