@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

body {
    font-family: 'Tiro Devanagari Hindi', 'Mangal', Devanagari, Arial, sans-serif;
    background: #fdfaf5;
    margin: 0;
    padding: 20px;
    color: #4a2c0c;
}

.container {
    background: none;

    margin: 10px auto;
    border: 10px solid;
    border-image: url(border.png) 30 round;
    max-width: 800px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.header-with-images {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 2px dashed #7a4b15;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.left-image, .right-image {
    flex-shrink: 0;
}

.side-image {
    width: 170px;
    height: 170px;
    object-fit: contain;
    border-radius: 8px;
}

.header-content {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.jain-logo {
    margin: 0 auto 10px;
}

.jain-logo img {
    height: 50px;
}

.header-content::before {
    content: '◦•●◉✿ ॐ ✿◉●•◦';
    font-size: 1.2rem;
    color: #7a4b15;
    display: block;
    margin-bottom: 5px;
}

.header-content h2 {
    margin: 0 0 5px 0;
    font-size: 2rem;
    font-weight: bold;
    color: #7a4b15;
    line-height: 1.3;
}

.header-content p {
    margin: 4px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.form-container {
    border: 1px solid #000;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.form-border-top {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 0 10px;
}

.deco-dot {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.deco-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
}


.shivira-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.form-group.name-group {
    flex: 2;
}

.form-group.gender-group {
    flex-direction: row;
    gap: 15px;
    align-items: center;
    padding-bottom: 5px;
}

label {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #4a2c0c;
}

input[type="text"], input[type="number"] {
    border: none;
    border-bottom: 1.5px dotted #7a4b15;
    background: transparent;
    padding: 4px 2px;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
}

input[type="radio"] {
    margin-right: 5px;
}

input:focus {
    outline: none;
    border-bottom: 1.5px solid #7a4b15;
}

.submit-row {
    justify-content: center;
    margin-top: 15px;
}

button[type="submit"] {
    background: #7a4b15;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    padding: 8px 25px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

button[type="submit"]:hover {
    background: #a16b3a;
}

.rules-section {
    margin-top: 25px;
    color: #4a2c0c;
    padding: 15px;
    border-radius: 10px;
}

.rules-section h4 {
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.star-bullet {
    color: #7a4b15;
    font-size: 1.5rem;
    margin-right: 5px;
}

.rules-section ol {
    padding-left: 30px;
    margin: 10px 0;
}

.rules-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-text {
    text-align: right;
    margin-top: 20px;
    font-style: italic;
    font-size: 0.9rem;
}

.footer-deco {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.errors {
    background: #fff0f0;
    border: 1px solid #ffbaba;
    color: #d8000c;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.errors p {
    margin: 0;
}


.submitted {
    background: #f2fed3;
    border: 2px solid #b7d680;
    padding: 15px 22px;
    margin: 22px 0;
    border-radius: 10px;
    color: #225c01;
    font-size: 1.1rem;
}

.schedule-container {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px dotted #7a4b15;
}

.schedule-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: #fff;
    display: inline-block;
    padding: 0 15px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    top: -35px;
    border: 1px solid #000;
    border-radius: 10px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table td {
    padding: 8px 5px;
    font-size: 1rem;
}

.schedule-table tr {
    border-bottom: 1px dotted #d4baa2;
}

.schedule-table tr:last-child {
    border-bottom: none;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 16px; /* Set a base font size for mobile */
    }
    .container {
        background:none;    
  
    
        margin: 10px auto;
        padding: 5px;
        border-image-width: 5px;
    }
    .header-with-images {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .side-image {
        width: 100px;
        height: 100px;
    }
    .header-content h2 {
        font-size: 1.7rem;
    }
    .header-content p {
        font-size: 1.1rem;
    }
    .shivira-form {
        gap: 18px;
    }
    .form-row {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
        width: 100%;
    }
    .form-group {
        min-width: 0;
        width: 100%;
        margin-bottom: 0;
    }
    .form-group.name-group {
        width: 100%;
    }
    .form-group.gender-group {
        flex-direction: row;
        gap: 20px;
        align-items: center;
        font-size: 1.2rem;
        width: 100%;
        margin-bottom: 0;
    }
    label {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    input[type="text"], input[type="number"] {
        font-size: 1.2rem;
        padding: 14px 10px;
        border-radius: 6px;
        border: 1.5px solid #d4baa2;
        background: #faf8f3;
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
    }
    input[type="radio"] {
        transform: scale(1.5);
        margin-right: 10px;
        accent-color: #7a4b15;
    }
    button[type="submit"] {
        font-size: 1.3rem;
        padding: 16px 0;
        width: 100%;
        border-radius: 8px;
        margin-top: 10px;
    }
    .form-container {
        padding: 20px 8px;
    }
    .rules-section h4 {
        font-size: 1.4rem;
    }
    .rules-section li {
        font-size: 1.1rem;
    }
    .schedule-title {
        font-size: 1.6rem;
        top: -40px;
    }
    .schedule-table td {
        font-size: 1.1rem;
        padding: 10px 5px;
    }
}

