/* QR Code section styles */
.qr-code-section {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.qr-code-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: #0a3d62 3px 3px 6px;
    max-width: 280px;
}

.qr-code-heading {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0a3d62;
    margin-bottom: 8px;
}

.qr-code-text {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.3;
}

.qr-code-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 2px solid #60a3bc;
    border-radius: 8px;
    background: white;
}

/* Additional responsive styles for the summary page on mobile */
@media screen and (max-width: 767px) {
    /* Make font sizes smaller on mobile */
    .summary-container {
        font-size: 0.85rem;
        padding: 0;
        margin-bottom: 30px;
        box-shadow: #0a3d62 3px 3px 6px;
    }
    
    .summary-container > fieldset {
        font-size: 1.2rem;
        padding: 0 3px;
        margin: 6px 0;
    }
    
    .summary-heading {
        font-size: 1.8rem;
        padding: 8px 0;
    }
    
    .summary-element {
        padding: 3px;
    }
    
    .summary-key, .summary-value {
        font-size: 0.9rem;
    }
    
    .registration-agreement-text {
        font-size: 0.85rem;
    }
    
    /* Improve layout for the signature area */
    .signature-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 15px 0;
    }
    
    .signature-container label {
        font-size: 1rem;
        align-self: flex-start;
        margin-bottom: 5px;
        font-weight: bold;
    }
    
    #signature-canvas {
        max-width: 100%;
        height: auto;
        border: 2px solid #60a3bc;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .signature-container .signature-note {
        font-size: 0.8rem;
        color: #666;
        margin-top: 5px;
    }
    
    .mandatory-notice {
        font-size: 0.8rem;
        color: #d64636;
        margin: 10px 0;
        display: block;
        text-align: center;
    }
    
    .validation-message {
        color: #d64636;
        font-size: 0.9rem;
        text-align: center;
        margin: 8px 0;
        padding: 5px;
        border-radius: 4px;
    }
    
    .clear-button {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    /* Make checkbox more visible but compact */
    .check-element .checkbox {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }
    
    /* Adjust the progress indicator */
    .progress-indicator {
        margin-bottom: 10px;
    }
    
    .progress-step {
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    /* Make fieldsets more compact */
    fieldset {
        margin: 8px 0;
    }
    
    fieldset legend {
        font-size: 1.1rem;
    }
    
    /* Submit button adjustments */
    .submit-button {
        font-size: 1.1rem;
        padding: 10px 15px;
    }
    
    /* Return link */
    .return-link {
        font-size: 0.9rem;
        margin: 10px 0;
    }
    
    /* Less padding in the main container */
    main {
        padding: 10px 5px;
    }
    
    /* Reduce logo size */
    .logo {
        width: 70%;
        margin: 5px 0;
    }
    
    /* QR Code mobile adjustments */
    .qr-code-section {
        margin: 15px 0;
    }
    
    .qr-code-container {
        padding: 15px;
        max-width: 240px;
    }
    
    .qr-code-heading {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .qr-code-text {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .qr-code-image {
        max-width: 160px;
    }
}

/* Animation for validation errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.hidden {
    display: none;
}

/* Additional adjustments for very small screens */
@media screen and (max-width: 360px) {
    .summary-container > fieldset {
        font-size: 1rem;
    }
    
    .summary-key, .summary-value {
        font-size: 0.8rem;
    }
    
    .summary-heading {
        font-size: 1.5rem;
    }
    
    .registration-agreement-text {
        font-size: 0.75rem;
    }
    
    /* Make the address and location data display properly */
    .summary-element {
        padding: 2px;
    }
    
    /* Smaller header text */
    .heading-1 {
        font-size: 4vh;
    }
    
    .heading-2 {
        font-size: 2vh;
    }
    
    /* Reduce space between fieldsets */
    fieldset {
        margin: 5px 0;
        padding: 5px 2px;
    }
    
    /* QR Code adjustments for very small screens */
    .qr-code-container {
        padding: 10px;
        max-width: 200px;
    }
    
    .qr-code-heading {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .qr-code-text {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .qr-code-image {
        max-width: 140px;
    }
}
