/* RESET & BASE */
.xlc-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    color: #444;
    line-height: 1.6;
}

/* HEADER & IMAGES */
.xlc-header-actions {
    text-align: right;
    margin-bottom: 15px;
}
.xlc-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.xlc-img-side {
    height: 80px;
    width: auto;
    object-fit: contain;
}
.xlc-img-center {
    height: 160px;
    width: auto;
    object-fit: contain;
}

/* FORM STYLING */
.xlc-form-wrapper {
    background: #fdfbf7;
    border: 1px solid #e8e0d1;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.xlc-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.xlc-flex-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.xlc-w-100 { width: 100%; margin-bottom: 15px; }

.xlc-input, .xlc-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #c9b497;
    border-radius: 6px;
    background: #fff;
    color: #5c4931;
    font-size: 14px;
    transition: all 0.3s ease;
}
.xlc-input:focus, .xlc-select:focus {
    outline: none;
    border-color: #8a6d3b;
    box-shadow: 0 0 0 3px rgba(138, 109, 59, 0.1);
}
.xlc-input::placeholder { color: #bcaaa4; }

/* PLAN & SUBMIT */
.xlc-wedding-plan {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e8e0d1;
}
.xlc-action-area { text-align: center; }

/* BUTTONS */
.xlc-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
}
.xlc-btn-primary {
    background: linear-gradient(135deg, #a07d58 0%, #8a6d3b 100%);
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.xlc-btn-primary:hover {
    background: linear-gradient(135deg, #8a6d3b 0%, #755b2e 100%);
    box-shadow: 0 4px 15px rgba(138, 109, 59, 0.3);
}
.xlc-btn-export {
    background: #f4f1ea;
    color: #8a6d3b;
    border: 1px solid #d5c8b5;
}
.xlc-btn-export:hover { background: #e8e0d1; }

/* RESULT AREA */
.xlc-result-wrapper {
    margin-top: 40px;
    border-top: 3px solid #d4af37;
    padding-top: 20px;
}
.xlc-result-heading h3 {
    text-align: center;
    color: #8a6d3b;
    font-size: 22px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.xlc-couple-info {
    display: flex;
    justify-content: space-around;
    background: #fdfbf7;
    padding: 15px;
    border: 1px solid #e8e0d1;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #8a6d3b;
    font-size: 16px;
}

/* MUSTACHE TEMPLATE STYLES */
.xlc-result-row {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}
.xlc-date-col {
    width: 25%;
    text-align: center;
    border-right: 1px dashed #e8e0d1;
    padding-right: 20px;
}
.xlc-date-col strong {
    display: block;
    font-size: 18px;
    color: #a07d58;
}
.xlc-content-col {
    width: 75%;
    text-align: left;
    color: #444;
}
.xlc-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #c9b497, transparent);
    margin: 10px 0;
}
.xlc-result-hour {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    margin-left: 25%; /* Thụt lề so với ngày */
}
.xlc-hour-name {
    width: 30%;
    color: #8a6d3b;
}
.xlc-hour-content {
    width: 70%;
    color: #666;
}
.xlc-logo-cunghy { margin-top: 5px; }
.xlc-logo-cunghy img { width: 24px; height: 24px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .xlc-grid-2-cols { grid-template-columns: 1fr; gap: 20px; }
    .xlc-img-side { display: none; }
    .xlc-img-center { height: 100px; }
    .xlc-wedding-plan { flex-direction: column; gap: 10px; }
    .xlc-result-row { flex-direction: column; }
    .xlc-date-col { width: 100%; border-right: none; border-bottom: 1px dashed #e8e0d1; padding-bottom: 15px; margin-bottom: 15px;}
    .xlc-content-col { width: 100%; }
    .xlc-result-hour { margin-left: 0; flex-direction: column; gap: 5px;}
    .xlc-hour-name, .xlc-hour-content { width: 100%; }
}

/* Bỏ ẩn lúc in ấn */
@media print {
    body * { visibility: hidden; }
    .xlc-container, .xlc-container * { visibility: visible; }
    .xlc-container { position: absolute; left: 0; top: 0; }
    .xlc-header-actions { display: none; }
}