/* ========================================
   RETREATS IN GREECE - ENHANCED FORM STYLES
   ======================================== */

/* ===== WRAPPER & CONTAINER ===== */
.retreat-form-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ===== PROGRESS BAR ===== */
.retreat-progress {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 30px;
    border-bottom: 2px solid #dee2e6;
}

.retreat-progress-bar {
    width: 100%;
    height: 10px;
    background: #dee2e6;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.retreat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e88e5, #1976d2);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(30, 136, 229, 0.3);
}

.retreat-progress-text {
    text-align: center;
    color: #495057;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== STEPS ===== */
.retreat-step {
    display: none;
    padding: 45px;
    animation: fadeInUp 0.4s ease;
}

.retreat-step.active {
    display: block;
}

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

/* ===== HEADER ===== */
.retreat-header {
    margin-bottom: 35px;
}

.retreat-logo {
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    color: #fff;
    padding: 50px 30px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 10px 40px rgba(13, 71, 161, 0.3);
}

.retreat-logo h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.retreat-logo h2 {
    margin: 10px 0 0 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.retreat-logo .retreat-subtitle {
    font-style: italic;
    opacity: 0.9;
    margin-top: 15px;
    font-size: 18px;
}

.retreat-form-title {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
}

/* ===== INFO BOXES ===== */
.retreat-intro,
.retreat-note {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    padding: 25px;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    line-height: 1.7;
    color: #856404;
    margin: 20px 0;
    font-size: 15px;
}

.retreat-intro {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #1e88e5;
    color: #37474f;
}

.retreat-intro p,
.retreat-note p {
    margin: 0 0 12px 0;
}

.retreat-intro p:last-child,
.retreat-note p:last-child {
    margin-bottom: 0;
}

.retreat-intro a,
.retreat-note a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.retreat-intro a:hover,
.retreat-note a:hover {
    border-bottom-color: #1565c0;
}

/* ===== FORM FIELDS ===== */
.retreat-fields {
    margin-bottom: 30px;
}

.retreat-field {
    margin-bottom: 30px;
}

.retreat-field label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.retreat-field label .required,
.retreat-field label span.required {
    color: #e74c3c;
    margin-left: 3px;
}

.retreat-hint {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    margin: 8px 0;
    display: block;
}

/* ===== INPUT FIELDS ===== */
.retreat-field input[type="text"],
.retreat-field input[type="email"],
.retreat-field input[type="tel"],
.retreat-field input[type="url"],
.retreat-field input[type="number"],
.retreat-field textarea,
.retreat-field select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #2c3e50;
}

.retreat-field input:focus,
.retreat-field textarea:focus,
.retreat-field select:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
    background: #fafbfc;
}

.retreat-field input:hover:not(:focus),
.retreat-field textarea:hover:not(:focus),
.retreat-field select:hover:not(:focus) {
    border-color: #adb5bd;
}

.retreat-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Error states */
.retreat-field input.error,
.retreat-field textarea.error,
.retreat-field select.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* ===== CHECKBOX GROUP ===== */
.retreat-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.retreat-checkbox-group label {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    position: relative;
    min-height: 50px;
}

.retreat-checkbox-group label:hover {
    background: #e3f2fd;
    border-color: #64b5f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

.retreat-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #1e88e5;
    flex-shrink: 0;
}

.retreat-checkbox-group label:has(input:checked) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #1e88e5;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    font-weight: 600 !important;
}

.retreat-checkbox-group label:has(input:checked)::after {
    content: '✓';
    position: absolute;
    right: 12px;
    color: #1e88e5;
    font-size: 18px;
    font-weight: bold;
}

/* ===== RADIO GROUP ===== */
.retreat-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.retreat-radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500 !important;
    padding: 12px 20px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.retreat-radio-group label:hover {
    border-color: #1e88e5;
    background: #e3f2fd;
    transform: translateY(-2px);
}

.retreat-radio-group input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #1e88e5;
}

.retreat-radio-group label:has(input:checked) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #1e88e5;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}

/* ===== CATEGORY COUNTER ===== */
.category-selection-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 15px;
    display: inline-block;
    font-size: 14px;
    color: #1565c0;
    font-weight: 600;
    border: 2px solid #90caf9;
}

.category-selection-info .count {
    background: #1e88e5;
    color: white;
    padding: 3px 12px;
    border-radius: 12px;
    margin-left: 5px;
    font-weight: 700;
}

/* ===== HIGHLIGHT ITEMS ===== */
.highlight-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    animation: fadeInUp 0.3s ease;
}

.highlight-item input {
    flex: 1;
}

/* ===== BUTTONS ===== */
.retreat-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 35px;
    margin-top: 35px;
    border-top: 2px solid #e9ecef;
    gap: 15px;
}

.retreat-btn,
.retreat-btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.retreat-btn {
    background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.retreat-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.retreat-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.retreat-btn-secondary {
    background: #6c757d;
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.retreat-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* ===== LOADING STATE ===== */
.retreat-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SUCCESS MESSAGE ===== */
.retreat-success {
    text-align: center;
    padding: 60px 40px;
}

.retreat-success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 50px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.retreat-success h3 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

.retreat-success p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ===== LOGIN NOTICE ===== */
.retreat-login-notice {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 40px auto;
}

.retreat-login-notice h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.retreat-login-notice p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* ===== DASHBOARD STYLES ===== */
.retreat-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.retreat-dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.retreat-dashboard-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
}

.retreat-dashboard-header p {
    color: #6c757d;
    font-size: 16px;
}

.retreat-dashboard-actions {
    margin-bottom: 30px;
    text-align: center;
}

.retreat-no-posts {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.retreat-no-posts-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.retreat-no-posts h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.retreat-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.retreat-post-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.retreat-post-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.retreat-post-card.published {
    border-left-color: #28a745;
}

.retreat-post-card.pending {
    border-left-color: #ffc107;
}

.retreat-post-card.draft {
    border-left-color: #dc3545;
}

.retreat-post-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.retreat-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.retreat-post-card:hover .retreat-post-image img {
    transform: scale(1.05);
}

.retreat-post-status {
    margin-bottom: 15px;
}

.retreat-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.retreat-status-badge.status-published {
    background: #d4edda;
    color: #155724;
}

.retreat-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.retreat-status-badge.status-draft {
    background: #f8d7da;
    color: #721c24;
}

.retreat-post-content h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.retreat-categories {
    margin: 10px 0;
}

.retreat-category-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}

.retreat-post-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.retreat-post-actions .retreat-btn,
.retreat-post-actions .retreat-btn-secondary {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
}

.retreat-pending-notice,
.retreat-draft-notice {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.retreat-pending-notice {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.retreat-draft-notice {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .retreat-form-wrapper {
        margin: 20px 10px;
        border-radius: 12px;
    }
    
    .retreat-step {
        padding: 25px 20px;
    }
    
    .retreat-logo {
        padding: 35px 20px;
    }
    
    .retreat-logo h1 {
        font-size: 26px;
        letter-spacing: 2px;
    }
    
    .retreat-logo h2 {
        font-size: 24px;
    }
    
    .retreat-form-title {
        font-size: 22px;
    }
    
    .retreat-checkbox-group,
    .retreat-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .retreat-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .retreat-radio-group label {
        width: 100%;
    }
    
    .retreat-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .retreat-nav .retreat-btn,
    .retreat-nav .retreat-btn-secondary {
        width: 100%;
    }
    
    .highlight-item {
        flex-direction: column;
    }
    
    .highlight-item .retreat-btn-secondary {
        width: 100%;
    }
    
    .retreat-post-actions {
        flex-direction: column;
    }
    
    .retreat-post-actions .retreat-btn,
    .retreat-post-actions .retreat-btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .retreat-logo h1 {
        font-size: 22px;
    }
    
    .retreat-logo h2 {
        font-size: 20px;
    }
    
    .retreat-form-title {
        font-size: 20px;
    }
    
    .retreat-btn,
    .retreat-btn-secondary {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .retreat-nav,
    .retreat-btn,
    .retreat-btn-secondary {
        display: none;
    }
    
    .retreat-form-wrapper {
        box-shadow: none;
    }
}