.dashboard-stats {
    background: #fffbd6;
    padding: 18px 18px;
    margin: 24px auto 24px auto;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #0b3e75;
    max-width: 600px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(11,62,117,0.07);
    text-align: center;
}

.dashboard-stats > div {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}
.dashboard-card {
    background: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: #0b3e75;
    min-width: 160px;
    text-align: center;
    border: 1.5px solid #0b3e75;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}
.dashboard-card:hover {
    background: #f2f2f2;
    color: #b71c1c;
}
.dashboard-stats span {
    color: #b71c1c;
    font-size: 1.25em;
    margin-left: 6px;
    font-weight: 900;
}
.dashboard-stats-title {
    width: 100%;
    text-align: center;
    font-size: 1.5em;
    font-weight: 900;
    color: #0b3e75;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    margin-top: -6px;
    padding-bottom: 4px;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .dashboard-stats-title {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
}

@media (max-width: 600px) {
    .dashboard-stats-title {
        font-size: 1em;
        margin-bottom: 6px;
        padding-bottom: 2px;
    }
}
/* Responsive styles for dashboard-stats */
@media (max-width: 900px) {
    .dashboard-stats {
        gap: 16px;
        padding: 12px 6px;
        font-size: 16px;
        max-width: 98vw;
    }
    .dashboard-stats div {
        min-width: 120px;
        padding: 8px 8px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .dashboard-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 8px 2vw;
        font-size: 14px;
        border-radius: 8px;
        max-width: 99vw;
    }
    .dashboard-stats div {
        min-width: unset;
        width: 100%;
        font-size: 14px;
        padding: 8px 4px;
        gap: 10px;
    }
    .dashboard-stats span {
        font-size: 1.1em;
    }
}

body.thankyou-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fffbd6;
}

.thankyou-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    text-align: center;
}
/* Error message styling */
.error-message {
    color: #d32f2f;
    font-size: 0.95em;
    margin: 2px 0 8px 0;
    min-height: 18px;
}
.Header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-heading {
    max-width: 900px;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heading {
    color: #0b3e75;
    text-align: center;
    font-size: 28px;
    margin-bottom: 5px;
}

.subheading {
    color: #3d3e3e;
    text-align: center;
    font-size: 16px;
}

.heading-container{
    align-items: center;
}

body {
    background-color: #fffbd6;
}

.form-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    min-width: 300px;
    max-width: 700px;
    width: 90%;
    background: white;
    margin: 20px auto;
    border: 2px solid black;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .card {
        width: 95%;
        min-width: auto;
        margin: 10px auto;
    }
}

@media (max-width: 500px) {
    .card {
        width: 100%;
        margin: 5px auto;
    }
}

.form-body {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.form-body label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

.form-body input,
.form-body textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

textarea {
    height: 80px;
}

#familyTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

#familyTable {
    background-color: white;
}

#familyTable th, #familyTable td {
    border: 1px solid #000;
    padding: 6px;
    text-align: center;
}

.table-btn-container {
    text-align: center;
    margin: 10px 0;
}

#addMemberBtn {
    padding: 8px 16px;
    border: none;
    background: #0b3e75;
    color: white;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
}

#addMemberBtn:hover {
    background: #06294d;
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.form-submit button {
    padding: 10px 20px;
    border: none;
    background: green;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
}

.form-submit button:hover {
    background: darkgreen;
}


.disclaimer {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 10px;
    background: none;
    border: none;
}

.disclaimer input[type="checkbox"] {
    width: 32px;
    height: 32px;
    margin-right: 5px;
    margin-top: 3px;
}

@media (max-width: 768px) {
    .disclaimer input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }
}

.disclaimer label {
    font-size: 16px;
    vertical-align: middle;
}

.disclaimer-text {
    display: flex;
    flex-direction: row;
}

.disclaimer-text label {
    margin-top: 5px; 
}

.form-body select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
}

.card-title{
    color: red;
    font-size: 28px;
    text-align: center;
}

.thankyou-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 32px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    text-align: center;
}
.thankyou-container h1 {
    color: #2e7d32;
    margin-bottom: 18px;
}
.thankyou-container p {
    color: #333;
    font-size: 1.15em;
}

.share-container {
    width: fit-content;
    padding: 20px;
    background-color: #fff;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    margin: 0 auto;
    align-items: center;
    flex-direction: column;
    display: flex;
  }


.shareButton {
    background-color: #4CAF50; 
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
  }

  .shareButton:hover {
    background-color: #3e8e41;
  }

@media (max-width: 900px) {
        .dashboard-stats {
            max-width: 98vw;
            padding: 12px 6px 16px 6px;
        }
        .dashboard-stats-cards {
            gap: 16px;
        }
        .dashboard-stats-cards > div {
            min-width: 120px;
            padding: 8px 8px;
            font-size: 15px;
        }
    }

    @media (max-width: 600px) {
        .dashboard-stats {
            max-width: 99vw;
            padding: 8px 2vw 12px 2vw;
            border-radius: 8px;
        }
        .dashboard-stats-cards {
            gap: 10px;
            align-items: stretch;
            display: flex;
            flex-direction: row;
            justify-content: space-around;
        }
        .dashboard-stats-cards > div {
            min-width: unset;
            width: 100%;
            font-size: 14px;
            padding: 8px 4px;
        }
        .dashboard-stats-cards span {
            font-size: 1.1em;
		}
	}

/* Media query for tablets (600px to 768px) */
@media (min-width: 599px) and (max-width: 768px) {
    .heading {
        font-size: 20px;
    }

    .subheading {
        font-size: 14px;
    }

    .form-body {
        padding: 15px;
    }

    .form-body label {
        font-size: 15px;
    }

    .form-body input,
    .form-body textarea,
    .form-body select {
        padding: 6px;
        font-size: 14px;
    }

    #familyTable th,
    #familyTable td {
        padding: 4px;
        font-size: 12px;
    }

    .disclaimer label {
        font-size: 14px;
    }

    .card-title{
        font-size: 20px;
    }

    .heading-container{
        align-items: center;
    }
}

/* Media query for mobile devices (smaller than 600px) */
@media (max-width: 599px) {
    .heading {
        font-size: 12px;
    }

    .card-title{
        font-size: 12px;
    }

    .subheading {
        font-size: 10px;
    }

    .heading-container{
        align-items: center;
    }

    .logo-heading {
        flex-direction: row;
    }

    .logo-heading img {
        width: 100px;
        height: 100px;
    }

    .form-body {
        padding: 10px;
    }

    .form-body label {
        font-size: 14px;
    }

    .form-body input,
    .form-body textarea,
    .form-body select {
        padding: 5px;
        font-size: 12px;
    }

    #familyTable th,
    #familyTable td {
        padding: 3px;
        font-size: 10px;
    }

    .disclaimer label {
        font-size: 12px;
    }

    .disclaimer input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}