/* -------------------------------
   Love & Marriage Calculator – Theme A
   Soft Cream | Warm Brown | Elegant
-------------------------------- */

.lm-wrapper {
    max-width: 760px;
    margin: 24px auto;
    padding: 0 18px;
    font-family: "Georgia", "Times New Roman", serif;
    color: #3A281A;
    line-height: 1.6;
}

.lm-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #3A281A;
}

.lm-subtitle {
    text-align: center;
    font-size: 15px;
    margin-bottom: 18px;
    color: #67574b;
}

/* Box */
.lm-box {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(42,28,20,0.06);
}

/* layout rows */
.lm-row {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.lm-col-input {
    flex: 1;
}

/* Inputs */
.lm-label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #4b372c;
    font-weight: 700;
}

.lm-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e6ddd7;
    background: #fffaf7;
    font-size: 15px;
    margin-bottom: 10px;
    box-sizing: border-box;
    color: #3a281a;
}

.lm-input:focus {
    outline: none;
    border-color: #cbbeb4;
    box-shadow: 0 6px 18px rgba(58,40,26,0.06);
}

/* Button */
.lm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg,#3A281A,#543b30);
    color: #fff;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(58,40,26,0.12);
    transition: transform .15s, box-shadow .15s;
}

.lm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(58,40,26,0.16);
}

/* result */
.lm-result { margin-top: 18px; opacity: 0; transform: translateY(6px); transition: all .25s ease; }
.lm-result:not(:empty) { opacity: 1; transform: translateY(0); }

.lm-card {
    background: #fbf5f1;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(58,40,26,0.06);
    overflow: hidden;
}

.lm-score {
    font-size: 34px;
    font-weight: 900;
    color: #3A281A;
    background: rgba(58,40,26,0.04);
    padding: 6px 10px;
    border-radius: 8px;
    margin-left: 10px;
}

/* sections */
.lm-section { margin-bottom: 12px; }
.lm-sec-title { font-size: 15px; font-weight: 700; color: #5a4035; margin-bottom: 6px; }
.lm-meaning { color: #4b372c; font-size: 15px; margin-bottom: 8px; }

/* grid */
.lm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.lm-col { background: rgba(58,40,26,0.02); padding: 12px; border-radius: 10px; }

/* lists */
.lm-list { list-style: none; margin: 0; padding-left: 8px; }
.lm-list li { padding: 6px 0; font-size: 14px; color: #4b372c; border-bottom: 1px dashed rgba(74,53,45,0.06); }

/* two columns */
.lm-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }

/* remedies & footer */
.lm-remedies { margin-top: 8px; }
.lm-footer { margin-top: 12px; color: #7b6256; font-size: 13px; }

/* PDF button */
.lm-pdf-btn {
    margin-top: 12px;
    width: 100%;
    padding: 12px;
    background: #3A281A;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(58,40,26,0.12);
}
.lm-pdf-btn:hover { transform: translateY(-2px); background: #5a3c27; }

/* sharing */
.lm-share-box { margin-top: 12px; }
.lm-share-title { font-weight:700; color:#5a4035; margin-bottom:8px; }
.lm-share-btn {
    display: inline-block; margin: 6px 8px 6px 0; padding: 8px 12px; border-radius: 8px;
    background:#f1e7e0; color:#3a281a; border:1px solid #d8c9c0; cursor:pointer;
}
.lm-share-btn:hover { background:#e7d8cf; }

/* errors */
.lm-error { padding: 12px; border-radius: 10px; background: #fff0ef; color: #7b2f2f; border-left: 4px solid #d2695a; }

/* animation */
.lm-pop { animation: lmPop 360ms cubic-bezier(.2,.9,.3,1); }
@keyframes lmPop { 0%{transform:translateY(12px) scale(.997);opacity:0}60%{transform:translateY(-6px) scale(1.01);opacity:1}100%{transform:translateY(0) scale(1);opacity:1} }

/* responsiveness */
@media (max-width: 760px) {
    .lm-row { flex-direction: column; }
    .lm-grid, .lm-two-col { grid-template-columns: 1fr; }
    .lm-wrapper { padding: 0 14px; }
}
