/**
 * Mattesz Hód Kód — Frontend Styles
 */

.mhk-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 15px;
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2c3e50;
    text-align: center;
    box-sizing: border-box;
}

.mhk-container * {
    box-sizing: border-box;
}

.mhk-heading {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 70, 100, 0.35);
    margin: 0 0 25px 0;
    line-height: 1.3;
}

/* Stage: Left Annotation + Right Safe & Mascot */
.mhk-stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin: 0 auto 14px auto;
    max-width: 542px;
    position: relative;
}

/* Left Column: Annotation pointing to Group 1 */
.mhk-annotation-wrapper {
    flex: 0 0 170px;
    width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 4px;
    z-index: 3;
    pointer-events: none;
}

.mhk-annotation-text-img {
    width: 100%;
    max-width: 135px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.mhk-annotation-arrow-img {
    width: 20px;
    height: auto;
    display: block;
    margin-top: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Right Column: Safe + Beaver (sitting above Groups 2 & 3) */
.mhk-vault-wrapper {
    flex: 0 0 356px;
    width: 356px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.mhk-safe-wrapper {
    flex: 0 1 245px;
    max-width: 250px;
    position: relative;
    z-index: 2;
}

.mhk-safe-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 20px rgba(0, 50, 70, 0.25));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mhk-beaver-wrapper {
    flex: 0 1 170px;
    max-width: 175px;
    position: relative;
    margin-left: -40px;
    margin-bottom: 5px;
    z-index: 1;
}

.mhk-beaver-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 50, 70, 0.2));
    transition: transform 0.4s ease;
}

/* Backward-compatibility for standalone annotation container if old HTML is cached */
.mhk-annotation-container {
    position: relative;
    max-width: 542px;
    margin: 0 auto 10px auto;
    height: auto;
    display: flex;
    justify-content: flex-start;
}

.mhk-annotation-bubble {
    position: relative;
    left: auto;
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 170px;
    z-index: 5;
    pointer-events: none;
}

/* 12-Digit Code Input Grid */
.mhk-code-entry-section {
    max-width: 542px;
    margin: 0 auto 20px auto;
}

.mhk-code-inputs-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.mhk-digit-group {
    display: flex;
    gap: 6px;
    flex: 0 0 170px;
    justify-content: center;
}

.mhk-digit {
    width: 38px;
    height: 48px;
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1a6b85 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: 0 4px 10px rgba(0, 60, 90, 0.18) !important;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s !important;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.mhk-digit:focus {
    border-color: #FFB74A !important;
    box-shadow: 0 0 0 3px rgba(255, 183, 74, 0.4) !important;
    transform: translateY(-2px);
}

.mhk-digit.mhk-error-highlight {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.3) !important;
}

/* Action Button */
.mhk-button-wrapper {
    margin-top: 10px;
}

.mhk-submit-btn {
    background: linear-gradient(180deg, #FFC46A 0%, #F59E1B 100%) !important;
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    padding: 13px 48px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px rgba(245, 158, 27, 0.45) !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
}

.mhk-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(245, 158, 27, 0.6) !important;
    filter: brightness(1.05);
}

.mhk-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(245, 158, 27, 0.4) !important;
}

.mhk-submit-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Feedback Messages */
.mhk-feedback-message {
    max-width: 500px;
    margin: 15px auto;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.mhk-feedback-error {
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.mhk-feedback-locked {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #d46b08;
}

.mhk-feedback-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

/* Claim Form (Winner section) */
.mhk-claim-section {
    background: #ffffff;
    max-width: 520px;
    margin: 30px auto 10px auto;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 60, 90, 0.18);
    text-align: left;
    animation: mhkFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mhk-win-celebration {
    text-align: center;
    margin-bottom: 22px;
}

.mhk-win-title {
    font-size: 22px;
    font-weight: 800;
    color: #0b8098;
    margin: 0 0 8px 0;
}

.mhk-win-subtitle {
    font-size: 15px;
    color: #556977;
    margin: 0;
}

.mhk-form-field {
    margin-bottom: 16px;
}

.mhk-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334e68;
    margin-bottom: 6px;
}

.mhk-input-text {
    width: 100% !important;
    height: 44px !important;
    padding: 10px 14px !important;
    border: 1px solid #c9d6df !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #102a43 !important;
    background: #f8fafc !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.mhk-input-text:focus {
    border-color: #0b8098 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(11, 128, 152, 0.2) !important;
}

.mhk-form-checkbox-field {
    margin: 18px 0 22px 0;
}

.mhk-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #627d98;
    cursor: pointer;
}

.mhk-checkbox-label input {
    margin-top: 2px;
    accent-color: #0b8098;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mhk-checkbox-label a {
    color: #0b8098;
    text-decoration: underline;
}

.mhk-form-submit-wrapper {
    text-align: center;
}

.mhk-claim-btn {
    background: linear-gradient(180deg, #0cb0cb 0%, #08798e 100%) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 14px 40px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(11, 128, 152, 0.35) !important;
    transition: transform 0.15s, box-shadow 0.2s !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mhk-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 128, 152, 0.5) !important;
}

.mhk-claim-btn:active {
    transform: translateY(1px);
}

.mhk-claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Screen */
.mhk-success-screen {
    background: #ffffff;
    max-width: 520px;
    margin: 30px auto;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 60, 90, 0.18);
    text-align: center;
    animation: mhkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mhk-success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.mhk-success-title {
    font-size: 22px;
    font-weight: 800;
    color: #27ae60;
    margin: 0 0 12px 0;
}

.mhk-success-text {
    font-size: 15px;
    line-height: 1.5;
    color: #334e68;
    margin: 0;
}

/* Animations */
@keyframes mhkShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-12px) rotate(-2deg); }
    30% { transform: translateX(10px) rotate(2deg); }
    45% { transform: translateX(-8px) rotate(-1deg); }
    60% { transform: translateX(6px) rotate(1deg); }
    75% { transform: translateX(-4px); }
}

.mhk-shake {
    animation: mhkShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes mhkPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes mhkFadeInUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 580px) {
    .mhk-stage {
        gap: 12px;
        max-width: 453px;
        margin-bottom: 10px;
    }
    .mhk-annotation-wrapper,
    .mhk-annotation-bubble {
        flex: 0 0 143px;
        width: 143px;
        padding-bottom: 3px;
    }
    .mhk-annotation-text-img {
        max-width: 115px;
    }
    .mhk-annotation-arrow-img {
        width: 18px;
    }
    .mhk-vault-wrapper {
        flex: 0 0 298px;
        width: 298px;
    }
    .mhk-safe-wrapper {
        flex: 0 1 210px;
        max-width: 215px;
    }
    .mhk-beaver-wrapper {
        flex: 0 1 145px;
        max-width: 150px;
        margin-left: -32px;
    }
    .mhk-code-entry-section {
        max-width: 453px;
    }
    .mhk-code-inputs-grid {
        gap: 12px;
        margin-bottom: 22px;
    }
    .mhk-digit-group {
        flex: 0 0 143px;
        gap: 5px;
    }
    .mhk-digit {
        width: 32px !important;
        height: 42px !important;
        font-size: 21px !important;
        border-radius: 7px !important;
    }
    .mhk-heading {
        font-size: 21px;
    }
    .mhk-submit-btn {
        font-size: 18px !important;
        padding: 12px 42px !important;
    }
}

@media (max-width: 480px) {
    .mhk-stage {
        gap: 8px;
        max-width: 331px;
        margin-bottom: 8px;
    }
    .mhk-annotation-wrapper,
    .mhk-annotation-bubble {
        flex: 0 0 105px;
        width: 105px;
        padding-bottom: 2px;
    }
    .mhk-annotation-text-img {
        max-width: 90px;
    }
    .mhk-annotation-arrow-img {
        width: 15px;
    }
    .mhk-vault-wrapper {
        flex: 0 0 218px;
        width: 218px;
    }
    .mhk-safe-wrapper {
        flex: 0 1 155px;
        max-width: 160px;
    }
    .mhk-beaver-wrapper {
        flex: 0 1 105px;
        max-width: 110px;
        margin-left: -22px;
    }
    .mhk-code-entry-section {
        max-width: 331px;
    }
    .mhk-code-inputs-grid {
        gap: 8px;
        margin-bottom: 20px;
    }
    .mhk-digit-group {
        flex: 0 0 105px;
        gap: 3px;
    }
    .mhk-digit {
        width: 24px !important;
        height: 36px !important;
        font-size: 17px !important;
        border-radius: 6px !important;
    }
    .mhk-heading {
        font-size: 18px;
    }
    .mhk-submit-btn {
        font-size: 17px !important;
        padding: 11px 36px !important;
    }
}

@media (max-width: 360px) {
    .mhk-stage {
        gap: 6px;
        max-width: 270px;
        margin-bottom: 6px;
    }
    .mhk-annotation-wrapper,
    .mhk-annotation-bubble {
        flex: 0 0 86px;
        width: 86px;
    }
    .mhk-annotation-text-img {
        max-width: 74px;
    }
    .mhk-annotation-arrow-img {
        width: 13px;
    }
    .mhk-vault-wrapper {
        flex: 0 0 178px;
        width: 178px;
    }
    .mhk-safe-wrapper {
        flex: 0 1 125px;
        max-width: 130px;
    }
    .mhk-beaver-wrapper {
        flex: 0 1 85px;
        max-width: 90px;
        margin-left: -18px;
    }
    .mhk-code-entry-section {
        max-width: 270px;
    }
    .mhk-code-inputs-grid {
        gap: 6px;
        margin-bottom: 16px;
    }
    .mhk-digit-group {
        flex: 0 0 86px;
        gap: 2px;
    }
    .mhk-digit {
        width: 20px !important;
        height: 32px !important;
        font-size: 14px !important;
        border-radius: 4px !important;
    }
    .mhk-heading {
        font-size: 17px;
    }
    .mhk-submit-btn {
        font-size: 15px !important;
        padding: 10px 30px !important;
    }
}

/* ====================================================
   Landing Page Template Styling (Hero, Garland, Rules)
   ==================================================== */
.mhk-hero-festive-art {
    position: relative;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.mhk-hero-festive-art img {
    border: none !important;
    box-shadow: none !important;
}

.mhk-wave-container {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.mhk-wave-container img {
    width: 100%;
    min-width: 900px;
    height: auto;
    display: block;
    border: none !important;
    box-shadow: none !important;
}

.mhk-faq-row {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
}

.mhk-faq-label {
    flex: 0 0 220px;
    text-align: right;
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mhk-faq-body {
    flex: 1 1 auto;
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .mhk-faq-row {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .mhk-faq-label {
        text-align: center;
        flex: 0 0 auto;
        width: 100%;
    }
    .mhk-faq-body {
        text-align: center;
    }
}

