/**
 * AdriJóga Hírlevél - Frontend stílusok
 * Feliratkozási űrlap - két paneles dizájn
 * Színek: #DBD1CB, #999999, #D2C5BC
 */

/* ============================================
   KONTÉNER - KÉT PANELES ELRENDEZÉS
   ============================================ */
.adrijoga-hirlevel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #DBD1CB;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    max-width: 1300px;
    margin: 40px auto;
}

/* TABLET - iPad */
@media (max-width: 1200px) {
    .adrijoga-hirlevel-container {
        max-width: 95%;
        margin: 30px auto;
        grid-template-columns: 1fr 1fr;
    }
}

/* TABLET Portrait */
@media (max-width: 900px) {
    .adrijoga-hirlevel-container {
        grid-template-columns: 1fr;
        max-width: 650px;
    }
}

/* MOBIL */
@media (max-width: 600px) {
    .adrijoga-hirlevel-container {
        grid-template-columns: 1fr;
        margin: 15px;
        border-radius: 16px;
        max-width: 100%;
    }
}

/* ============================================
   BAL OLDAL - KÉP
   ============================================ */
.adrijoga-hirlevel-image {
    position: relative;
    background: #D2C5BC;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    overflow: hidden;
}

.adrijoga-hirlevel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* TABLET */
@media (max-width: 1200px) {
    .adrijoga-hirlevel-image {
        min-height: 480px;
    }
}

/* TABLET Portrait */
@media (max-width: 900px) {
    .adrijoga-hirlevel-image {
        min-height: 320px;
    }
}

/* MOBIL */
@media (max-width: 600px) {
    .adrijoga-hirlevel-image {
        min-height: 240px;
    }
}

/* ============================================
   JOBB OLDAL - ŰRLAP
   ============================================ */
.adrijoga-hirlevel-form-wrapper {
    padding: 60px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #D2C5BC;
}

/* TABLET */
@media (max-width: 1200px) {
    .adrijoga-hirlevel-form-wrapper {
        padding: 50px 45px;
    }
}

/* TABLET Portrait */
@media (max-width: 900px) {
    .adrijoga-hirlevel-form-wrapper {
        padding: 40px 35px;
    }
}

/* MOBIL */
@media (max-width: 600px) {
    .adrijoga-hirlevel-form-wrapper {
        padding: 30px 24px;
    }
}

.adrijoga-hirlevel-title {
    font-size: 28px;
    font-weight: 700;
    color: #4a4a4a;
    margin: 0 0 32px 0;
    line-height: 1.3;
    font-family: 'Segoe UI', -apple-system, sans-serif;
}

/* TABLET */
@media (max-width: 1024px) {
    .adrijoga-hirlevel-title {
        font-size: 26px;
        margin-bottom: 28px;
    }
}

/* MOBIL */
@media (max-width: 600px) {
    .adrijoga-hirlevel-title {
        font-size: 22px;
        margin-bottom: 22px;
    }
}

/* ============================================
   FORM ELEMEK
   ============================================ */
.adrijoga-hirlevel-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* MOBIL */
@media (max-width: 600px) {
    .adrijoga-hirlevel-form {
        gap: 18px;
    }
}

.adrijoga-form-group {
    display: flex;
    flex-direction: column;
}

.adrijoga-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #5a5a5a;
    margin-bottom: 8px;
    font-family: 'Segoe UI', -apple-system, sans-serif;
}

.adrijoga-form-group label .required {
    color: #c25550;
    margin-left: 2px;
}

.adrijoga-form-group input[type="text"],
.adrijoga-form-group input[type="email"] {
    padding: 15px 18px;
    border: 2px solid #DBD1CB;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #4a4a4a;
}

.adrijoga-form-group input:focus {
    outline: none;
    border-color: #999999;
    box-shadow: 0 0 0 4px rgba(153, 153, 153, 0.15);
}

.adrijoga-form-group input::placeholder {
    color: #aaa;
}

/* ============================================
   CHECKBOX - GDPR - KIEMELT!
   ============================================ */
.adrijoga-checkbox-group {
    margin-top: 8px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 2px solid #DBD1CB;
    transition: all 0.3s ease;
}

.adrijoga-checkbox-group:hover {
    border-color: #999999;
    background: rgba(255, 255, 255, 0.8);
}

.adrijoga-checkbox-group.has-error {
    border-color: #c25550;
    background: rgba(194, 85, 80, 0.08);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Wrapper a checkbox és szöveg mellé */
.adrijoga-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Csak a checkbox-ot tartalmazza a label */
.adrijoga-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.adrijoga-checkbox-label input[type="checkbox"] {
    display: none;
}

.adrijoga-checkbox-label .checkmark {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #888888;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.adrijoga-checkbox-label:hover .checkmark {
    border-color: #666666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.adrijoga-checkbox-label input:checked + .checkmark {
    background: linear-gradient(135deg, #6a9a7d 0%, #5a8a6d 100%);
    border-color: #5a8a6d;
}

.adrijoga-checkbox-label input:checked + .checkmark:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

/* GDPR szöveg - KÍVÜL a label-től */
.gdpr-text {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: #4a4a4a;
}

/* GDPR LINK - KATTINTHATÓ! */
.gdpr-text a {
    color: #2e7d32 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    display: inline !important;
    position: relative !important;
    z-index: 100 !important;
}

.gdpr-text a:link,
.gdpr-text a:visited {
    color: #2e7d32 !important;
}

.gdpr-text a:hover {
    color: #1b5e20 !important;
    background-color: rgba(46, 125, 50, 0.1);
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 3px;
}
/* ============================================
   SUBMIT GOMB - ÚJ SZÍNEK
   ============================================ */
.adrijoga-submit-btn {
    margin-top: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #8a8a8a 0%, #6a6a6a 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.adrijoga-submit-btn:hover {
    background: linear-gradient(135deg, #7a7a7a 0%, #5a5a5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 100, 100, 0.3);
}

.adrijoga-submit-btn:active {
    transform: translateY(0);
}

.adrijoga-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.adrijoga-submit-btn .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   ÜZENET DOBOZ
   ============================================ */
.adrijoga-form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adrijoga-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.adrijoga-form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ============================================
   ANIMÁCIÓK
   ============================================ */
.adrijoga-hirlevel-container {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CSAK FORM VERZIÓ (kép nélkül)
   ============================================ */
.adrijoga-hirlevel-container.no-image {
    grid-template-columns: 1fr;
    max-width: 550px;
}

.adrijoga-hirlevel-container.no-image .adrijoga-hirlevel-form-wrapper {
    padding: 50px 45px;
}

@media (max-width: 600px) {
    .adrijoga-hirlevel-container.no-image .adrijoga-hirlevel-form-wrapper {
        padding: 30px 22px;
    }
}

/* ============================================
   EXTRA TOUCH-FRIENDLY MOBIL
   ============================================ */
@media (max-width: 600px) {
    .adrijoga-form-group input[type="text"],
    .adrijoga-form-group input[type="email"] {
        padding: 16px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .adrijoga-submit-btn {
        padding: 18px 32px;
        font-size: 14px;
    }
    
    .adrijoga-checkbox-label {
        font-size: 14px;
    }
    
    .adrijoga-checkbox-label .checkmark {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
}
