/* General styling for the page */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
}

/* Container for the form */
#memercho-container {
    padding: 20px;
}

/* Form styling */
.memercho-form {
    background: #fff;
    border-radius: 10px;
    padding: 30px 40px;
    max-width: 640px;
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    box-sizing: border-box;
}

.memercho-form legend {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
    /* Dark color for readability */
    text-align: center;
    font-weight: 700;
    border: none;
    padding: 0;
}

.memercho-form fieldset {
    border: none;
    margin: 0 0 24px 0;
    padding: 0;
}

/* Segmented control for request type */
.memercho-segmented {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hide actual radio buttons */
.memercho-segmented input[type=radio] {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.memercho-segmented label::before,
.memercho-segmented label::after {
    content: none !important;
}

/* Custom styled radio button labels */
.memercho-segmented label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 2px solid #008bea;
    border-radius: 999px;
    background: #fafafa;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all .2s;
}

.memercho-segmented label:hover {
    border-color: #008bea;
    background-color: #e6f4ff;
}

.memercho-segmented input[type=radio]:checked+label {
    background: #008bea;
    border-color: #008bea;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 139, 234, .2);
    transform: translateY(-1px);
}

/* Form labels and inputs styling */
.memercho-form label.block {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.05em;
}

.memercho-form input[type=text],
.memercho-form input[type=email],
.memercho-form textarea,
.memercho-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.05em;
    box-sizing: border-box;
    transition: all .2s;
}

.memercho-form input:focus,
.memercho-form textarea:focus,
.memercho-form select:focus {
    outline: 3px solid rgba(0, 139, 234, .2);
    border-color: #008bea;
}

/* Styling for invalid fields */
.memercho-form .is-invalid {
    border-color: #b00020;
    background-color: #fff8f8;
}

.memercho-form .is-invalid:focus {
    outline: 3px solid rgba(176, 0, 32, .3);
    border-color: #b00020;
}

/* Submit button */
.memercho-form button[type=submit] {
    background: #008bea;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.15em;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all .2s;
}

.memercho-form button[type=submit]:hover {
    background: #006bb5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 139, 234, .15);
}

.memercho-form button[type=submit]:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Status messages */
#memercho-status {
    margin-top: 15px;
    min-height: 1.2em;
    font-size: .95em;
    font-weight: 600;
    text-align: center;
}

#memercho-status.ok {
    color: #1a7f37;
}

#memercho-status.err {
    color: #b00020;
}

.validation-error-msg {
    color: #b00020;
    font-size: 0.9em;
    margin-top: -8px;
    margin-bottom: 10px;
}

/* Consent checkbox area */
#memercho-consent-wrap {
    margin: 10px 0 20px;
    font-size: .95em;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#memercho-consent-wrap label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

#memercho-consent-wrap input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: checkbox;
    width: 1.3em;
    height: 1.3em;
    margin: 0;
    flex-shrink: 0;
    accent-color: #008bea;
}

#memercho-consent-wrap a {
    color: #008bea;
    text-decoration: none;
}

#memercho-consent-wrap a:hover {
    text-decoration: underline;
}

/* Honeypot field for spam prevention */
#memercho-honeypot {
    position: absolute !important;
    left: -9999px !important;
}

/* Small text styling */
small {
    display: block;
    font-size: .9em;
    color: #666;
    margin-top: -5px;
    margin-bottom: 15px;
}

/* Hide elements by default */
.hidden {
    display: none;
}

/* --- Responzivní úpravy pro mobilní zařízení --- */
@media (max-width: 680px) {
    #memercho-container {
        padding: 10px 5px;
        /* Snížení vnějšího odsazení */
    }

    .memercho-form {
        padding: 25px 15px;
        /* Snížení vnitřního odsazení formuláře */
    }
}
/* --- Styly pro úspěšné odeslání formuláře (vrácení/výměna/reklamace) --- */
.return-container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.return-title {
    background-color: #008bea;
    padding: 20px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.return-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.return-text {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.return-address,
.return-contact {
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
    text-align: left;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
}

/* Speciální úprava pro reklamace */
.return-content.claim {
    justify-content: center;
}

.return-contact.claim {
    max-width: 400px;
    text-align: left;
}

/* Responsivita */
@media (max-width: 768px) {
    .return-content {
        flex-direction: column;
    }
    .return-content.claim {
        align-items: center;
    }
}

/* Root variables for shop information */
:root {
  --eshop-name: "animerch.cz";
  --eshop-email: "info@animerch.cz";
  --eshop-phone: "+420 702 851 036";
}