/* Chinese Zodiac Plugin Styles */
/* Color palette: #00a2c8 (primary), #0085a6 (dark), #e6f7fb (light tint) */

.cz-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cz-form-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,162,200,0.15);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    transition: all 0.3s ease;
}

.cz-header {
    text-align: center;
    margin-bottom: 32px;
}

.cz-header-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    animation: cz-float 3s ease-in-out infinite;
}

@keyframes cz-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.cz-header h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    color: #1a1a2e;
    font-weight: 700;
}

.cz-header p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Fields */
.cz-field {
    margin-bottom: 20px;
}

.cz-field label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cz-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.cz-field input:focus {
    border-color: #00a2c8;
    box-shadow: 0 0 0 4px rgba(0,162,200,0.12);
    background: #fff;
}

/* Error */
.cz-error {
    background: #eef8fb;
    color: #0085a6;
    border: 1px solid #b3e2ef;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

/* Button */
.cz-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    letter-spacing: 0.3px;
}

.cz-btn:not(.cz-btn-secondary) {
    background: linear-gradient(135deg, #0085a6, #00a2c8);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,162,200,0.4);
}

.cz-btn:not(.cz-btn-secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,162,200,0.5);
}

.cz-btn:not(.cz-btn-secondary):active {
    transform: translateY(0);
}

.cz-btn-secondary {
    background: #f5f5f5;
    color: #444;
    margin-top: 12px;
    border: 2px solid #e8e8e8;
}

.cz-btn-secondary:hover {
    background: #eaeaea;
}

/* Result */
.cz-result {
    text-align: center;
    animation: cz-reveal 0.5s ease;
}

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

.cz-result-emoji {
    font-size: 80px;
    margin-bottom: 12px;
    animation: cz-float 3s ease-in-out infinite;
}

.cz-result-greeting {
    font-size: 1rem;
    color: #666;
    margin: 0 0 4px;
}

.cz-result h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin: 0 0 12px;
    font-weight: 500;
}

.cz-sign-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0085a6, #00a2c8);
    color: #fff;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,162,200,0.35);
}

.cz-description {
    color: #555;
    font-size: 0.975rem;
    line-height: 1.6;
    margin: 0 0 8px;
    padding: 16px;
    background: #f5fbfd;
    border-radius: 12px;
    border-left: 4px solid #00a2c8;
    text-align: left;
}

/* Responsive */
@media (max-width: 520px) {
    .cz-form-container {
        padding: 28px 20px;
    }
    .cz-header h2 {
        font-size: 1.3rem;
    }
}

/* Split date row */
.cz-date-row {
    display: flex;
    gap: 10px;
}

.cz-date-group {
    flex: 1.4;
}

.cz-date-group--day {
    flex: 0.8;
}

.cz-date-group--year {
    flex: 1;
}

.cz-date-group select,
.cz-date-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.cz-date-group input {
    background-image: none;
    padding-right: 16px;
    cursor: text;
}

.cz-date-group select:focus,
.cz-date-group input:focus {
    border-color: #00a2c8;
    box-shadow: 0 0 0 4px rgba(0,162,200,0.12);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.cz-date-group input:focus {
    background-image: none;
}

@media (max-width: 380px) {
    .cz-date-row {
        flex-direction: column;
        gap: 8px;
    }
    .cz-date-group,
    .cz-date-group--day,
    .cz-date-group--year {
        flex: unset;
    }
}

/* Polarity Block */
.cz-polarity-block {
    background: #f0fafd;
    border: 1px solid #b3e2ef;
    border-radius: 14px;
    padding: 20px;
    margin: 16px 0 8px;
    text-align: left;
}

.cz-polarity-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0085a6;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cz-polarity-title::before {
    content: '☯';
    font-size: 1.1rem;
}

.cz-polarity-intro {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 12px;
}

.cz-polarity-traits {
    margin: 0 0 12px;
    padding-left: 20px;
    list-style: none;
}

.cz-polarity-traits li {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 4px;
    position: relative;
}

.cz-polarity-traits li::before {
    content: '→';
    color: #00a2c8;
    position: absolute;
    left: -18px;
    font-weight: 700;
}

.cz-polarity-closing {
    font-size: 0.9rem;
    color: #0085a6;
    font-style: italic;
    line-height: 1.55;
    margin: 0;
    border-top: 1px solid #c8eaf3;
    padding-top: 12px;
}

/* Element Block */
.cz-element-block {
    background: #fdf8f0;
    border: 1px solid #f0d9b0;
    border-radius: 14px;
    padding: 20px;
    margin: 12px 0 8px;
    text-align: left;
}

.cz-element-title {
    font-size: 1rem;
    font-weight: 700;
    color: #b07d2e;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cz-element-title::before {
    content: '✦';
    font-size: 1rem;
    color: #c9922a;
}

.cz-element-intro {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 12px;
}

.cz-element-traits {
    margin: 0 0 12px;
    padding-left: 20px;
    list-style: none;
}

.cz-element-traits li {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 4px;
    position: relative;
}

.cz-element-traits li::before {
    content: '→';
    color: #c9922a;
    position: absolute;
    left: -18px;
    font-weight: 700;
}

.cz-element-closing {
    font-size: 0.9rem;
    color: #b07d2e;
    font-style: italic;
    line-height: 1.55;
    margin: 0;
    border-top: 1px solid #f0d9b0;
    padding-top: 12px;
}


.cz-link-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    margin: 0 0 8px;
}

.cz-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cz-link-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #555;
    background: #fafafa;
    box-sizing: border-box;
    outline: none;
    cursor: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cz-copy-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    background: linear-gradient(135deg, #0085a6, #00a2c8);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.cz-copy-btn:hover {
    transform: translateY(-1px);
}

.cz-copy-btn--copied {
    background: linear-gradient(135deg, #1a9e5c, #22c76e);
}

/* Consent / Submitted For Section */
.cz-consent-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f5fbfd;
    border: 2px solid #e0f3f8;
    border-radius: 12px;
}

.cz-consent-heading {
    font-weight: 600;
    font-size: 0.875rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.cz-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.cz-consent-item:last-child {
    margin-bottom: 0;
}

.cz-consent-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-top: 2px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.cz-consent-item input[type="radio"]:checked {
    border-color: #00a2c8;
    background: #00a2c8;
    box-shadow: inset 0 0 0 3px #fff;
}

.cz-consent-item span {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.cz-consent-item strong {
    color: #1a1a2e;
}