:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-primary);

  --bg-main: #edf1f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f9fc;

  --text-main: #253247;
  --text-muted: #718096;

  --primary: #4968c8;
  --primary-light: #4968c8;

  --border-color: #d8e0eb;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  background-image: linear-gradient(180deg, #e8edf5 0%, #f2f5f9 260px, #edf1f7 100%);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url("forum-background.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sleepspace {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
}

.restheader {
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 100;
}

.headerlayout {
  background-color: #26354b;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 3px 12px rgba(20, 35, 55, 0.12);

  position: sticky;
  top: 0;
  z-index: 101;

  width: 100%;
  margin: 0;
  padding: 1rem 1.5rem;

  display: flex;
  justify-content: center;
  align-items: center;
}

.sleepbrand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
}

.brandimage {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.branddetail {
  color: var(--primary);
}

.sleepnav {
  width: 100%;
  background-color: #34465f;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(20, 35, 55, 0.08);
  padding: 0.75rem 1rem;
}

.sleepnav ul {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.sleepnav a {
  color: #e0e8f3;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sleepnav a:hover {
  color: #ffffff;
}

.btn-signin {
  background-color: #405675;
  border: 1px solid #526986;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-signin:hover {
  border-color: var(--primary);
  background-color: #496482;
}

.signin-view {
    display: none !important;
}

.signin-view.active {
    display: block !important;
}

.signin-view.active .signin-form {
    display: flex !important;
    flex-direction: column;
}

.sleeptopic {
    margin-bottom: 2.5rem;
    padding: 25px 30px 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.topictag {
  display: inline-block;
  background: #e6edff;
  color: #3e5eb9;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.sleeptopic h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #253247;
}

.thread-meta-bar {
  display: flex;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

.sleepthreads {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 3px 14px rgba(38, 53, 75, 0.07);
  transition: border-color 0.2s ease;
}

.post-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.post-card.is-op {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.post-user-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.post-user-info {
  display: flex;
  flex-direction: column;
}

.post-username {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-username:hover {
  color: #2563eb;
}

.post-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-text p {
  color: #354258;
  font-size: 1.025rem;
  margin-bottom: 1rem;
}

.post-text p:last-child {
  margin-bottom: 0;
}

.related-threads-box {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #334155;
}

.related-threads-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #253247;
  font-weight: 700;
}

.related-threads-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-thread-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #d8e0eb;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
}

.related-thread-link {
  color: #253247;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.related-thread-link:hover {
  color: var(--primary);
}

.related-thread-replies {
  font-size: 0.85rem;
  color: #718096;
  white-space: nowrap;
  margin-left: 1rem;
}

.modern-reply-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
  opacity: 1;
  box-shadow: 0 3px 14px rgba(38, 53, 75, 0.06);
}

.modern-reply-box h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

.modern-reply-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.modern-reply-box textarea {
  width: 100%;
  background: #f7f9fc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: #253247;
  font-family: inherit;
  resize: none;
  margin-bottom: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: not-allowed;
  opacity: 0.7;
}

.mattressbutton {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 0.8rem 1.35rem;
  border-radius: 50px;
  font-weight: 900;
  -webkit-text-stroke: 0.4px currentColor;
  text-align: center;
  justify-content: center;
  font-size: 1.02rem;
  text-decoration: none;
  box-shadow: 0 8px 25px -4px rgba(16, 185, 129, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulse-subtle 3s infinite;
}

.mattressbutton:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -4px rgba(16, 185, 129, 0.7);
  color: #ffffff;
}

@keyframes pulse-subtle {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

.restfooter {
  background: #e5eaf2;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.restfooter .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footernav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-powered {
  margin: 0;
}

.footer-powered a {
  color: #4968c8;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .mattressbutton {
    bottom: 12px;
    right: 12px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px -2px rgba(16, 185, 129, 0.4);
  }
}

@media (max-width: 640px) {
  .headerlayout {
    padding: 0.85rem 1rem;
  }

  .sleepbrand {
    font-size: 1.05rem;
    gap: 0.5rem;
  }

  .brandimage {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .sleepnav {
    padding: 0.65rem 1rem;
  }

  .sleepnav ul {
    gap: 2rem;
  }

  .sleepnav a {
    font-size: 0.9rem;
  }

  .sleeptopic h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 360px) {
  .sleepbrand {
    font-size: 0.95rem;
  }

  .sleepnav ul {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mattressbutton {
    animation: none;
  }
}

.restfooter {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footernav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-powered {
    margin: 0;
}

.footer-powered a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.footer-powered a:hover {
    text-decoration: underline;
}

.brandimage {
    object-fit: contain;
}

@media (max-width: 600px) {
    .footernav {
        gap: 0.75rem 1.25rem;
    }
}

.homepage-intro .intro-text {
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.7;
}

.threadpages {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
    gap: 1rem;
}

.communitystats {
    margin-top: 3rem;

}

.communitystats h2 {
    margin-bottom: 1rem;
	    background: rgba(255, 255, 255, 0.75);
    padding: 12px 18px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@media (max-width: 600px) {
    .threadpages {
        gap: 0.5rem;
    }

    .homepage-intro .intro-text {
        line-height: 1.6;
    }
}

.related-threads-box {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-threads-title {
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: var(--text-primary);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.75);
    padding: 12px 18px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.related-threads-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-thread-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--card-background, #1e293b);
    border: 1px solid var(--border-color, #334155);
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
}

.related-thread-link {
    color: var(--text-primary, #f1f5f9);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.related-thread-link:hover {
    color: var(--accent-color, #2563eb);
}

.related-thread-replies {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
}

.community-widget {
    background: var(--card-background, #1e293b);
    border: 1px solid var(--border-color, #334155);
    border-radius: 10px;
    padding: 1.25rem;
}

.community-widget + .community-widget {
    margin-top: 1.5rem;
}

.community-widget-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--text-primary, #f8fafc);
}

.community-widget-text {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary, #cbd5e1);
}

.community-widget-text:last-child {
    margin-bottom: 0;
}

.community-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-secondary, #cbd5e1);
}

.pinned-thread {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: #0f172a;
    border: 1px solid #1e3a8a;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.pinned-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pinned-label {
    background: #2563eb;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pinned-description {
    font-size: 0.85rem;
    color: #93c5fd;
}

.pinned-title {
    margin: 0;
    font-size: 1.1rem;
}

.pinned-link {
    color: #bfdbfe;
    text-decoration: none;
}

.pinned-link:hover {
    text-decoration: underline;
}

.pinned-meta {
    font-size: 0.85rem;
    color: #60a5fa;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.discussion-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #1e293b;
    margin-bottom: 0.75rem;
}

.discussion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.discussion-card-title {
    margin: 0;
    font-size: 1.1rem;
}

.discussion-card-link {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
}

.discussion-card-link:hover {
    color: #60a5fa;
}

.discussion-tag {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid #334155;
    white-space: nowrap;
}

.post-username {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.post-username:hover {
    color: #2563eb;
}

.threadpages .btn-primary {
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 600px) {
    .discussion-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .related-thread-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    .related-thread-replies {
        margin-left: 0;
    }

    .pinned-meta {
        flex-wrap: wrap;
    }
}
css

.signin-shell {
    width: 100%;
    max-width: 480px;
    margin: 1rem auto 2rem;
}

.signin-panel {
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 20px rgba(38, 53, 75, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.signin-heading {
    text-align: center;
    margin-bottom: 1.75rem;
}

.signin-heading h1 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.signin-heading p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.signin-alert {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.signin-alert.info {
    background: #edf2ff;
    border: 1px solid #c7d2fe;
    color: #354b91;
}

.signin-alert.error {
    background: #fff1f1;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.signin-tabs {
    display: flex;
    background: #e9eef6;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 1.75rem;
}

.signin-tab {
    flex: 1;
    padding: 0.65rem 0;
    text-align: center;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.signin-tab.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(38, 53, 75, 0.1);
}

.signin-tab:hover {
    color: var(--primary);
}

.signin-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.signin-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.signin-social-button:hover {
    background: #f7f9fc;
    border-color: var(--primary);
}

.signin-social-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.signin-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.signin-divider::before,
.signin-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.signin-divider span {
    padding: 0 0.75rem;
}

.signin-form {
    display: none;
    flex-direction: column;
    gap: 1.1rem;
}

.signin-form.active {
    display: flex;
}

.signin-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.signin-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.signin-input {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.signin-input::placeholder {
    color: #94a3b8;
}

.signin-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(73, 104, 200, 0.15);
}

.signin-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.signin-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.signin-checkbox input {
    accent-color: var(--primary);
}

.signin-forgot {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.signin-forgot:hover {
    text-decoration: underline;
}

.signin-submit {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s;
    margin-top: 0.5rem;
}

.signin-submit:hover {
    background: #3c58b0;
}

.signin-submit:active {
    transform: scale(0.99);
}

.signin-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.signin-terms {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
}

.signin-terms a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .signin-shell {
        margin: 0 auto 1rem;
    }

    .signin-panel {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 360px) {
    .signin-panel {
        padding: 1.75rem 1rem;
    }

    .signin-options {
        font-size: 0.78rem;
    }

    .signin-heading h1 {
        font-size: 1.45rem;
    }
}
css

.legal-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    color: var(--text-main);
    box-shadow: 0 5px 20px rgba(38, 53, 75, 0.07);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.legal-card h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.legal-card .legal-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal-card h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.legal-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #354258;
    margin-bottom: 1rem;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .legal-card {
        padding: 2rem 1.25rem;
    }

    .legal-card h1 {
        font-size: 1.75rem;
    }

    .legal-card h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .legal-card {
        padding: 1.75rem 1rem;
    }
}

        .contact-card {
            max-width: 650px;
            margin: 30px auto;
            padding: 35px;
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            box-shadow: 0 8px 25px rgba(30, 45, 65, 0.08);
            backdrop-filter: blur(5px);
        }

        .contact-card h1 {
            margin: 0 0 10px;
            color: var(--text-main);
            font-family: var(--font-heading);
            font-size: 28px;
        }

        .contact-card p {
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 25px;
        }

        .contact-field {
            margin-bottom: 18px;
        }

        .contact-field label {
            display: block;
            margin-bottom: 7px;
            color: var(--text-main);
            font-weight: 600;
            font-size: 14px;
        }

        .contact-field input,
        .contact-field textarea {
            width: 100%;
            padding: 13px 14px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            background: #fff;
            color: var(--text-main);
            font: inherit;
            font-size: 15px;
            box-sizing: border-box;
        }

        .contact-field textarea {
            min-height: 150px;
            resize: vertical;
        }

        .contact-field input:focus,
        .contact-field textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(73, 104, 200, 0.12);
        }

        .contact-submit {
            display: inline-block;
            width: 100%;
            padding: 14px 20px;
            border: none;
            border-radius: var(--radius-sm);
            background: var(--primary);
            color: #fff;
            font: inherit;
            font-weight: 700;
            cursor: pointer;
        }

        .contact-submit:hover {
            opacity: 0.9;
        }

        @media (max-width: 600px) {
            .contact-card {
                padding: 24px 18px;
            }
        }