/* ------------ RESET & BASE STYLES ------------ */
.compatibility-calculator * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.compatibility-calculator {
    font-family: 'Open Sans', Verdana, sans-serif;
    font-size: 13px;
    line-height: 18px;
    position: relative;
}

/* ------------ UI COMPONENTS ------------ */
.comp-ui-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
}

.comp-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.comp-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.comp-select-block {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-bottom: 45px;
}

.comp-gender-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.comp-date-selector {
    display: flex;
    gap: 5px;
    align-items: center;
}

.comp-date-item {
    border-bottom: 2px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    position: relative;
    min-width: 60px;
    text-align: center;
    transition: all 0.16s ease-out;
    user-select: none;
}

.comp-date-item:hover {
    border-color: #999;
}

.comp-female .comp-date-item {
    border-color: #ff007f;
}

.comp-male .comp-date-item {
    border-color: #238dbb;
}

.comp-arrow {
    border-bottom: 1px solid #999;
    border-right: 1px solid #999;
    display: inline-block;
    height: 6px;
    width: 6px;
    transform: rotate(45deg);
    transition: all 0.22s ease-out;
    margin-left: 8px;
}

.comp-date-item.active .comp-arrow {
    transform: rotate(225deg);
    border-color: #333;
}

/* Date List Styles */
.comp-date-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    box-shadow: 0px 2px 22px rgba(0, 0, 0, 0.12);
    z-index: 10;
    display: none;
    border: 1px solid #ddd;
}

.comp-date-list.active {
    display: block;
}

.comp-date-list li {
    padding: 12px 15px;
    list-style: none;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.comp-date-list li:hover {
    background-color: #f5f5f5;
}

.comp-date-list li.selected {
    background-color: #ffeef5;
    color: #ff007f;
}

.comp-male .comp-date-list li.selected {
    background-color: #e7f8ff;
    color: #238dbb;
}

/* Calculate Button */
.comp-calculate-btn {
    background: #ff007f;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.22s ease-out;
    margin-top: 20px;
}

.comp-calculate-btn:hover {
    background: #f10078;
    box-shadow: 0px 2px 9px rgba(252, 70, 143, 0.55);
}

.comp-calculate-btn:active {
    background: #d00e5d;
}

/* ------------ RESULTS STYLES ------------ */
.comp-results {
    background: white;
    box-shadow: 0px 2px 48px rgba(0, 0, 0, 0.22);
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    display: none;
}

.comp-results.active {
    display: block;
}

.comp-progress-bar {
    width: 0;
    height: 2px;
    background-color: #ff007f;
    margin: 20px 0;
    transition: width 0.3s ease;
}

.comp-results-content {
    display: none;
}

.comp-results-content.active {
    display: block;
}

.comp-result-row {
    display: flex;
    padding: 20px 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    align-items: flex-start;
}

.comp-bio-block-1 {
    width: 64%;
    font-weight: 600;
}

.comp-bio-block-2 {
    color: #ff007f;
    font-weight: 600;
    width: 10%;
    text-align: right;
}

.comp-bio-block-3 {
    padding-left: 5px;
    font-size: 13px;
    color: #333;
    width: 26%;
}

.comp-bio-block-4 {
    width: 64%;
    font-size: 11px;
    color: #999;
}

/* Zodiac Results */
.comp-zodiac-result {
    margin-bottom: 60px;
}

.comp-zodiac-pair {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.comp-zodiac-sign {
    text-align: center;
}

.comp-zodiac-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.comp-pink {
    color: #ff007f;
}

.comp-blue {
    color: #238dbb;
}

/* Comment Sections */
.comp-comment {
    padding: 20px 5px;
    border-top: 1px solid #eee;
}

.comp-comment-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

/* ------------ MODAL & OVERLAY ------------ */
.comp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 51, 0.77);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.comp-modal-overlay.active {
    display: flex;
}

.comp-mobile-date-picker {
    background: white;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
}

.comp-mobile-date-header {
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-weight: 600;
}

.comp-mobile-date-list {
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* ------------ RESPONSIVE STYLES ------------ */
@media (max-width: 768px) {
    .comp-ui {
        margin-bottom: 30px;
    }
    
    .comp-select-block {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .comp-date-selector {
        justify-content: center;
    }
    
    .comp-date-item {
        min-width: 50px;
        padding: 10px 8px;
    }
    
    .comp-results {
        padding: 15px;
        margin: 10px;
    }
    
    .comp-result-row {
        padding: 15px 5px;
    }
    
    .comp-bio-block-1,
    .comp-bio-block-2,
    .comp-bio-block-3,
    .comp-bio-block-4 {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .comp-bio-block-2 {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .comp-date-item {
        min-width: 45px;
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .comp-ui-wrap {
        padding: 10px;
    }
    
    .comp-results {
        padding: 10px;
    }
}

/* Loading States */
.comp-loading {
    opacity: 0.7;
    pointer-events: none;
}

.comp-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}