/* === Enhanced Mobile Experience === */
html {
    box-sizing: border-box;
    font-size: 16px;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    min-width: 320px;
    overflow-x: hidden;
}

/* === Skip Navigation Link (Enhanced) === */
.skip-link {
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    background: #007bff;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: top 0.3s, box-shadow 0.3s;
    outline: none;
    opacity: 0;
    pointer-events: none;
}
.skip-link:focus {
    top: 16px;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* === Focus Styles === */
a:focus, button:focus, input:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* === Container === */
.container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2rem;
}
@media (max-width: 700px) {
    .container {
        padding: 1rem;
    }
}
@media (max-width: 400px) {
    .container {
        padding: 0.5rem;
        border-radius: 0;
    }
    h1, h2 {
        font-size: 1.1rem;
    }
}

/* === Language Switcher === */
.language-switcher {
    text-align: right;
    margin-bottom: 1rem;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}
.language-switcher a {
    text-decoration: none;
    color: #007bff;
    padding: 0.2em 0.6em;
    margin: 0 0.2em;
    border-radius: 3px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.language-switcher a.active, .language-switcher a:focus {
    background: #007bff;
    color: #fff;
    outline: 2px solid #0056b3;
}
.language-switcher a:hover:not(.active) {
    background-color: #e9ecef;
}

/* === Headings === */
h1, h2 {
    color: #333;
    text-align: center;
    word-break: break-word;
}
h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
}

/* === Form Elements === */
form {
    margin-top: 1.5rem;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
input, select, textarea {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    min-height: 44px;
}
input[type="text"], input[type="submit"], button {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    min-height: 44px;
}
input[type="submit"], button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-size: 1em;
    min-width: 44px;
    min-height: 44px;
    display: inline-block;
}
input[type="submit"]:hover, button:hover {
    background-color: #0056b3;
}

.form-group {
    margin-bottom: 1.5em;
}

/* === Buttons === */
.button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.7em 1.5em;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: inline-block;
}
.button:hover, .button:focus {
    background: #0056b3;
}

/* === Error and Success Messages === */
.error-message, .error-area {
    color: #b30000;
    background: #ffeaea;
    padding: 0.5em 1em;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.success, .result-area {
    background-color: #e6fffa;
    border: 1px solid #00bfa5;
    color: #2e7d32;
    padding: 10px;
    margin-top:10px;
    border-radius: 4px;
}

/* === Miscellaneous === */
.reseller-brand {
    text-align: right;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}
.hidden {
    display: none !important;
}

/* === Loader === */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === Action Grid (index.html) === */
.action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    align-items: stretch;
}
.action-card {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 1.5rem;
    min-width: 220px;
    max-width: 300px;
    flex: 1 1 220px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.action-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.action-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.action-card .button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    min-width: 120px;
    word-break: break-word;
    min-height: 48px;
}
@media (max-width: 700px) {
    .action-grid {
        flex-direction: column;
        gap: 1rem;
    }
    .action-card {
        min-width: 0;
        max-width: 100%;
        margin: 0 auto;
    }
}
@media (max-width: 400px) {
    .action-card {
        padding: 0.7rem;
    }
    .action-card h2 {
        font-size: 1rem;
    }
    .action-card p {
        font-size: 0.95rem;
    }
}

/* Center buttons in forms */
form .button,
form button,
form input[type="submit"] {
    display: block;
    margin: 0 auto 1rem auto;
}

/* Center buttons in action cards */
.action-card .button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    min-width: 120px;
    word-break: break-word;
    min-height: 48px;
}

/* Center dialog footer buttons */
.dialog-footer {
    text-align: center;
}

/* Utility class for centering any button group */
.button-center, .button-group.center {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Certificate options sections spacing */
.certificate_options {
    margin-bottom: 2em;
}

/* === Mobile refinements (≤ 480 px) === */
@media (max-width: 480px) {

    /* Put one card per row – full width */
    .action-grid {
        flex-direction: column;
        gap: 1.2rem;
    }

    .action-card {
        max-width: 100%;
        padding: 1rem;
    }

    /* Shorten headings & text spacing for small screens */
    .action-card h2 {
        font-size: 1.05rem;
        margin-bottom: .4rem;
        line-height: 1.25;
    }
    .action-card p {
        font-size: .95rem;
        margin-bottom: .8rem;
        line-height: 1.35;
    }

    /* Buttons: full-width (better thumb targets)                 *
     * They keep the flex-centred label, and min-height is kept.  */
    .action-card .button {
        width: 100%;
        min-width: 0;          /* allow shrink to container */
        max-width: 280px;      /* don't get absurdly wide on tablets */
        min-height: 52px;      /* larger tap area                             */
        font-size: 1rem;
    }
} 

/* --- Adopted and unified from index.html (kezdolap-1.html) --- */
html, body {
    height: 100%;
    min-height: 100%;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F2FAFD;
    color: #333;
    min-height: 100vh;
}
.container {
    background-color: white;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
    min-width: 320px;
    box-sizing: border-box;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Ensures it spans the full width of the page */
    max-width: 100%; /* Prevents overflow */
    flex-wrap: wrap;
    box-sizing: border-box;
}
.logo-container img {
    margin-right: 15px;
}
.partner-badge {
    background-color: #f0f7ff;
    color: #145DA0;
    padding: 4px 8px; /* Reduced padding to allow more space for the logo */
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.partner-badge img {
    height: 63px; /* Adjusted to 90% of the original size */
}
h1, h2 {
    color: #145DA0;
}
.intro {
    background-color: #f9f9f9;
    border-left: 4px solid #19A7CE;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.menu-item {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-item img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}
.menu-item h3 {
    color: #145DA0;
    margin-bottom: 15px;
}
.menu-item p {
    color: #666;
    margin-bottom: 20px;
}
.btn, .help-section .btn {
    background-color: #145DA0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    text-decoration: none;
    margin-left: 10px;
}
.btn:hover, .help-section .btn:hover {
    background-color: #0F4A8A;
}
.support-btn {
    background-color: white;
    color: #145DA0;
    border: 1px solid #145DA0;
}
.support-btn:hover {
    background-color: #e3f2fd;
    color: #0F4A8A;
}
.certificate-types {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
    text-align: left;
    min-height: 90px;
    width: 100%;
}
.certificate-types strong {
    color: #145DA0;
}
.certificate-types ul {
    margin: 6px 0 0;
    padding-left: 18px;
}
.certificate-types li {
    margin: 3px 0;
}
.revocation-info {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 25px;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(255,193,7,0.07);
}
.revocation-info h2 {
    margin-top: 0;
    color: #ff8f00;
}
.help-section {
    margin-top: 40px;
    background-color: #f0f7ff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(20,93,160,0.07);
}
.help-text {
    flex: 2;
}
.help-text h3 {
    margin-top: 0;
    color: #145DA0;
}
.help-buttons {
    flex: 1;
    text-align: right;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.user-name {
    font-weight: bold;
    color: #2c5282;
}
.logout-btn {
    background: #e53e3e;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}
.logout-btn:hover {
    background: #c53030;
}
.language-switcher {
    text-align: right;
    margin-bottom: 10px;
    background: #f0f7ff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    color: #145DA0;
    box-shadow: 0 2px 6px rgba(20,93,160,0.04);
}
.language-switcher a {
    color: #145DA0;
    text-decoration: none;
    margin: 0 5px;
    padding: 2px 8px;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}
.language-switcher a.active, .language-switcher a:focus {
    font-weight: bold;
    text-decoration: underline;
    background: #dbeafe;
    color: #0F4A8A;
}
.language-switcher a:hover:not(.active) {
    background: #e3f2fd;
    color: #145DA0;
}
/* --- New: Align all main menu buttons in one horizontal line --- */
.menu-buttons-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.menu-buttons-row .menu-item {
    flex: 1 1 300px;
    max-width: 350px;
    min-width: 300px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    /* --- Ensure all menu-items have the same height --- */
    box-sizing: border-box;
    min-height: 520px; /* Adjust as needed for your content */
    height: 520px;     /* Fixed height for alignment */
}
/* --- Ensure all buttons are aligned at the bottom --- */
.menu-item .btn {
    margin-top: auto;
    width: 100%;
    max-width: 200px;
}
/* Responsive styles */
@media (max-width: 1200px) {
    .container {
        padding: 20px 10px;
    }
    .menu-buttons-row {
        gap: 16px;
    }
}
@media (max-width: 900px) {
    .container {
        padding: 10px 2vw;
    }
    .menu-buttons-row {
        flex-direction: column;
        gap: 20px;
    }
    .menu-buttons-row .menu-item {
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .language-switcher {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    .help-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .help-buttons {
        text-align: center;
        margin-top: 15px;
    }
    .container {
        padding: 5vw 1vw;
    }
    .menu-buttons-row {
        flex-direction: column;
        gap: 20px;
    }
    .menu-buttons-row .menu-item {
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 2vw 0.5vw;
    }
} 

.form-section-title {
    color: #145DA0;
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.15em;
    font-weight: 600;
} 

.required::after {
    content: " *";
    color: #d9534f; /* Red color for the asterisk */
    font-weight: bold;
    margin-left: 0.2em;
} 

/* Ensure styles are applied to order_status.html */
html, body {
    box-sizing: border-box;
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    min-width: 320px;
    overflow-x: hidden;
}

.container {
    max-width: 70%; /* Decrease width by 30% */
    margin: 0 auto; /* Center horizontally */
}

form .button,
form button,
form input[type="submit"] {
    display: block;
    margin: 0 auto 1rem auto; /* Center buttons vertically and horizontally */
} 
