@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=DM+Sans:wght@400;500&display=swap");
:root {
--pd-dark:    #0f1f17;
--pd-green:   #1a5c3a;
--pd-mid:     #246b44;
--pd-light:   #e8f5ee;
--pd-accent:  #4ade80;
--pd-warn1:   #fbbf24;
--pd-warn2:   #f97316;
--pd-danger:  #ef4444;
--pd-white:   #ffffff;
--pd-grey:    #6b7280;
--pd-border:  #d1fae5;
--pd-radius:  16px;
--pd-shadow:  0 4px 24px rgba(15,31,23,.10);
--pd-font-h:  'Sora', sans-serif;
--pd-font-b:  'DM Sans', sans-serif;
}
.pd-wrapper {
font-family: var(--pd-font-b);
max-width: 720px;
margin: 2rem auto;
background: var(--pd-white);
border-radius: var(--pd-radius);
box-shadow: var(--pd-shadow);
overflow: hidden;
border: 1.5px solid var(--pd-border);
} .pd-header {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
background: linear-gradient(135deg, var(--pd-dark) 0%, var(--pd-green) 100%);
padding: 1.75rem 2rem;
color: var(--pd-white);
}
.pd-header-icon {
flex-shrink: 0;
width: 52px;
height: 52px;
background: rgba(255,255,255,.12);
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
color: var(--pd-accent);
}
.pd-header-icon svg { width: 34px; height: 34px; }
.pd-header-text {
flex: 1;
min-width: 0;
}
.pd-title {
font-family: var(--pd-font-h);
font-size: 1.35rem;
font-weight: 700;
margin: 0 0 .25rem;
color: #ffffff !important;
}
.pd-subtitle {
margin: 0;
font-size: .875rem;
opacity: .8;
color: var(--pd-white);
} .pd-geo-status {
flex-basis: 100%;
margin-left: 0;
}
@media (min-width: 480px) {
.pd-geo-status {
flex-basis: auto;
margin-left: auto;
}
} .pd-upload-section {
padding: 2rem;
}
.pd-dropzone {
border: 2px dashed var(--pd-border);
border-radius: var(--pd-radius);
background: var(--pd-light);
cursor: pointer;
transition: border-color .2s, background .2s;
min-height: 200px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative; }
.pd-dropzone.pd-has-files {
min-height: unset;
justify-content: flex-start;
cursor: default;
background: var(--pd-white);
}
.pd-dropzone:hover:not(.pd-has-files),
.pd-dropzone.pd-drag-over {
border-color: var(--pd-mid);
background: #d1fae5;
}
.pd-dropzone-content {
text-align: center;
padding: 2rem;
width: 100%;
}
.pd-upload-icon {
width: 56px;
height: 56px;
margin: 0 auto 1rem;
color: var(--pd-mid);
}
.pd-upload-icon svg { width: 100%; height: 100%; }
.pd-drop-title {
font-family: var(--pd-font-h);
font-size: 1.05rem;
font-weight: 600;
color: var(--pd-dark);
margin: 0 0 .4rem;
}
.pd-drop-sub {
font-size: .875rem;
color: var(--pd-grey);
margin: 0 0 .5rem;
}
.pd-link-btn {
background: none;
border: none;
color: var(--pd-mid);
font-weight: 600;
cursor: pointer;
font-size: .875rem;
text-decoration: underline;
padding: 0;
}
.pd-drop-hint {
font-size: .8rem;
color: #9ca3af;
margin: 0;
} .pd-preview-wrap {
position: absolute;
inset: 0;
}
.pd-preview-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
}
.pd-remove-img {
position: absolute;
top: 10px;
right: 10px;
background: rgba(15,31,23,.7);
color: white;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
cursor: pointer;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
} .pd-photo-types {
margin: 1.25rem 0;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: .5rem;
}
.pd-photo-type-label {
font-size: .8rem;
color: var(--pd-grey);
font-weight: 500;
}
.pd-photo-type-chips {
display: flex;
flex-wrap: wrap;
gap: .4rem;
}
.pd-chip {
background: var(--pd-light);
border: 1px solid var(--pd-border);
border-radius: 99px;
padding: .2rem .75rem;
font-size: .78rem;
color: var(--pd-green);
font-weight: 500;
} .pd-analyze-btn {
display: flex;
align-items: center;
justify-content: center;
gap: .6rem;
width: 100%;
padding: .9rem 1.5rem;
background: linear-gradient(135deg, var(--pd-green) 0%, var(--pd-mid) 100%);
color: var(--pd-white);
border: none;
border-radius: 12px;
font-family: var(--pd-font-h);
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: opacity .2s, transform .1s;
margin-top: .5rem;
}
.pd-analyze-btn:disabled {
opacity: .4;
cursor: not-allowed;
}
.pd-analyze-btn:not(:disabled):hover {
opacity: .9;
transform: translateY(-1px);
}
.pd-btn-icon { font-size: 1.1rem; } .pd-error-msg {
background: #fee2e2;
border: 1px solid #fca5a5;
color: #dc2626;
border-radius: 8px;
padding: .75rem 1rem;
font-size: .875rem;
margin-top: 1rem;
} .pd-loader {
padding: 3rem 2rem;
text-align: center;
}
.pd-spinner {
width: 52px;
height: 52px;
border: 4px solid var(--pd-light);
border-top-color: var(--pd-mid);
border-radius: 50%;
margin: 0 auto 1.25rem;
animation: pd-spin .8s linear infinite;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }
.pd-loader-text {
font-family: var(--pd-font-h);
font-weight: 600;
color: var(--pd-dark);
margin: 0 0 .4rem;
}
.pd-loader-sub {
font-size: .875rem;
color: var(--pd-grey);
margin: 0 0 1rem;
} .pd-loader-progress-wrap {
display: flex;
flex-direction: column;
align-items: center;
gap: .6rem;
margin-top: .5rem;
width: 100%;
max-width: 280px;
margin-left: auto;
margin-right: auto;
}
.pd-loader-progress-bar {
width: 100%;
height: 6px;
background: var(--pd-light);
border-radius: 999px;
overflow: hidden;
}
.pd-loader-progress-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--pd-green), var(--pd-accent));
border-radius: 999px;
transition: width .9s linear;
}
.pd-loader-timer-label {
font-size: .82rem;
font-weight: 600;
color: var(--pd-mid);
font-family: var(--pd-font-b);
} .pd-results {
padding: 1.5rem 2rem 2rem;
}
.pd-result-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.25rem;
}
.pd-back-btn {
background: none;
border: 1.5px solid var(--pd-border);
color: var(--pd-mid);
border-radius: 8px;
padding: .4rem .9rem;
font-size: .82rem;
font-weight: 600;
cursor: pointer;
transition: background .15s;
flex-shrink: 0;
}
.pd-back-btn:hover { background: var(--pd-light); }
.pd-result-title {
font-family: var(--pd-font-h);
font-size: 1.1rem;
font-weight: 700;
color: var(--pd-dark);
margin: 0;
} .pd-result-card {
background: var(--pd-white);
border: 1.5px solid var(--pd-border);
border-radius: var(--pd-radius);
padding: 1.25rem 1.5rem;
margin-bottom: 1rem;
}
.pd-card-header {
display: flex;
align-items: center;
gap: .5rem;
margin-bottom: 1rem;
}
.pd-card-icon { font-size: 1.1rem; }
.pd-card-header h4 {
font-family: var(--pd-font-h);
font-size: .95rem;
font-weight: 700;
color: var(--pd-dark);
margin: 0;
flex: 1;
}
.pd-confidence-badge {
background: var(--pd-light);
color: var(--pd-green);
border-radius: 99px;
padding: .2rem .7rem;
font-size: .78rem;
font-weight: 600;
} .pd-identification-body {
display: flex;
flex-direction: column;
gap: .75rem;
}
.pd-common-name {
font-family: var(--pd-font-h);
font-size: 1.4rem;
font-weight: 700;
color: var(--pd-dark);
margin: 0 0 .2rem;
}
.pd-scientific-name {
font-style: italic;
font-size: .875rem;
color: var(--pd-grey);
margin: 0 0 .5rem;
}
.pd-meta-tags {
display: flex;
flex-wrap: wrap;
gap: .4rem;
margin-bottom: .25rem;
}
.pd-meta-tag {
background: var(--pd-light);
color: var(--pd-green);
border-radius: 99px;
padding: .2rem .75rem;
font-size: .78rem;
font-weight: 600;
border: 1px solid var(--pd-border);
}
.pd-description {
font-size: .9rem;
color: #374151;
line-height: 1.6;
} .pd-danger-gauge-wrap {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
}
.pd-danger-gauge {
flex: 1;
height: 12px;
background: #e5e7eb;
border-radius: 99px;
overflow: hidden;
}
.pd-danger-fill {
height: 100%;
border-radius: 99px;
transition: width .6s cubic-bezier(.34,1.56,.64,1), background-color .3s;
}
.pd-danger-label {
font-family: var(--pd-font-h);
font-size: .9rem;
font-weight: 700;
min-width: 80px;
text-align: right;
}
.pd-risks-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
@media (max-width: 500px) { .pd-risks-grid { grid-template-columns: 1fr; } }
.pd-risk-col h5 {
font-family: var(--pd-font-h);
font-size: .82rem;
font-weight: 700;
color: var(--pd-dark);
margin: 0 0 .5rem;
}
.pd-risk-col ul {
list-style: none;
margin: 0;
padding: 0;
}
.pd-risk-col ul li {
font-size: .82rem;
color: #374151;
padding: .2rem 0;
display: flex;
align-items: flex-start;
gap: .4rem;
}
.pd-risk-col ul li::before {
content: '•';
color: var(--pd-mid);
font-weight: 700;
flex-shrink: 0;
margin-top: .05rem;
} .pd-signs-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: .4rem;
}
.pd-signs-list li {
display: flex;
align-items: center;
gap: .5rem;
font-size: .875rem;
color: #374151;
}
.pd-signs-list li::before {
content: '✓';
color: var(--pd-mid);
font-weight: 700;
} .pd-treatment-text {
font-size: .9rem;
color: #374151;
line-height: 1.6;
margin: 0;
} .pd-cta-block {
background: linear-gradient(135deg, var(--pd-dark) 0%, var(--pd-green) 100%);
border-radius: var(--pd-radius);
overflow: hidden;
margin-top: .5rem;
}
.pd-cta-urgency {
background: var(--pd-danger);
display: flex;
align-items: center;
gap: .6rem;
padding: .6rem 1.5rem;
font-size: .82rem;
font-weight: 700;
color: white;
}
.pd-urgency-dot {
width: 8px;
height: 8px;
background: white;
border-radius: 50%;
flex-shrink: 0;
animation: pd-pulse 1.2s ease-in-out infinite;
}
@keyframes pd-pulse {
0%,100% { opacity: 1; transform: scale(1); }
50% { opacity: .6; transform: scale(1.4); }
}
.pd-cta-content {
padding: 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
flex-wrap: wrap;
}
.pd-cta-text h3 {
font-family: var(--pd-font-h);
font-size: 1.15rem;
font-weight: 700;
color: white;
margin: 0 0 .35rem;
}
.pd-cta-text p {
font-size: .85rem;
color: rgba(255,255,255,.75);
margin: 0;
}
.pd-cta-actions {
display: flex;
flex-direction: column;
gap: .6rem;
flex-shrink: 0;
}
.pd-cta-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: .5rem;
padding: .7rem 1.25rem;
border-radius: 10px;
font-family: var(--pd-font-h);
font-size: .88rem;
font-weight: 700;
text-decoration: none !important;
transition: opacity .2s, transform .1s;
white-space: nowrap;
}
.pd-cta-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.pd-cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.pd-cta-primary {
background: var(--pd-accent);
color: var(--pd-dark) !important;
}
.pd-cta-secondary {
background: rgba(255,255,255,.15);
color: white !important;
border: 1.5px solid rgba(255,255,255,.3);
} .pd-thumb-strip {
display: flex;
flex-wrap: wrap;
gap: .75rem;
padding: 1.25rem;
justify-content: center;
width: 100%;
box-sizing: border-box;
} .pd-thumb {
position: relative;
width: 130px;
height: 110px;
border-radius: 10px;
overflow: hidden;
border: 2px solid var(--pd-border);
box-shadow: 0 2px 8px rgba(15,31,23,.10);
flex-shrink: 0;
}
.pd-thumb-img-wrap {
width: 100%;
height: 100%;
}
.pd-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
} .pd-thumb-remove {
position: absolute;
top: 5px;
right: 5px;
width: 22px;
height: 22px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0,0,0,.62);
color: #fff;
border: none;
border-radius: 50%;
font-size: 11px;
font-weight: 700;
line-height: 1;
cursor: pointer;
padding: 0;
z-index: 10; opacity: 0;
transition: opacity .18s, background .15s, transform .15s;
}
.pd-thumb:hover .pd-thumb-remove {
opacity: 1;
}
.pd-thumb-remove:hover {
background: #ef4444;
transform: scale(1.15);
}
.pd-upload-footer {
display: flex; align-items: center; justify-content: space-between;
padding: .35rem .5rem 0; font-size: .82rem;
}
.pd-photo-count { color: var(--pd-mid); font-weight: 600; }
.pd-add-more-btn {
background: none; border: 1.5px dashed var(--pd-mid); color: var(--pd-mid);
border-radius: 8px; padding: .3rem .75rem; font-size: .8rem; font-weight: 600;
cursor: pointer; transition: background .15s;
}
.pd-add-more-btn:hover { background: var(--pd-light); } .pd-geo-status {
background: rgba(255,255,255,.15);
border-radius: 8px; padding: .3rem .75rem;
font-size: .75rem; color: rgba(255,255,255,.9);
white-space: nowrap;
}
.pd-geo-status span { font-weight: 600; } .pd-low-confidence {
text-align: center; padding: 2rem;
background: #fffbeb; border: 1.5px solid #fde68a;
border-radius: var(--pd-radius); margin-bottom: 1rem;
}
.pd-lc-icon { font-size: 3rem; margin-bottom: .75rem; }
.pd-low-confidence h4 { font-family: var(--pd-font-h); font-size: 1.1rem; margin: 0 0 .5rem; color: #92400e; }
.pd-low-confidence p { font-size: .88rem; color: #78350f; margin: 0 0 .5rem; }
.pd-lc-actions { display: flex; gap: .75rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; } .pd-urgency-score {
position: relative; background: #fef2f2; border: 2px solid #ef4444;
border-radius: var(--pd-radius); padding: 1.25rem 1.5rem;
margin-bottom: 1rem; overflow: hidden;
}
.pd-urgency-pulse-ring {
position: absolute; inset: 0; border-radius: inherit;
border: 2px solid #ef4444;
animation: pd-ring-pulse 1.5s ease-out infinite;
}
@keyframes pd-ring-pulse {
0%   { opacity: 1; transform: scale(1); }
100% { opacity: 0; transform: scale(1.06); }
}
.pd-urgency-content {
display: flex; align-items: center; gap: 1rem; position: relative;
}
.pd-urgency-icon { font-size: 2rem; animation: pd-shake .4s ease infinite alternate; }
@keyframes pd-shake { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.pd-urgency-content strong { font-family: var(--pd-font-h); font-size: 1rem; color: #dc2626; display: block; }
.pd-urgency-content p { margin: .2rem 0 0; font-size: .88rem; color: #7f1d1d; }
#pd-countdown { font-family: 'Courier New',monospace; font-weight: 700; font-size: 1.1rem; color: #dc2626; } .pd-callback-block {
background: var(--pd-white); border: 1.5px solid var(--pd-border);
border-radius: var(--pd-radius); margin-top: 1rem; overflow: hidden;
}
.pd-callback-header {
background: var(--pd-light); padding: 1rem 1.5rem;
display: flex; align-items: center; gap: .75rem;
font-size: 1.3rem;
}
.pd-callback-header div strong { font-family: var(--pd-font-h); font-size: .95rem; color: var(--pd-dark); display: block; }
.pd-callback-header div p { margin: .15rem 0 0; font-size: .8rem; color: var(--pd-grey); }
.pd-callback-form { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .65rem; }
.pd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
@media(max-width:480px){ .pd-form-row{ grid-template-columns:1fr; } }
.pd-form-input {
border: 1.5px solid #e5e7eb; border-radius: 8px;
padding: .6rem .9rem; font-size: .88rem; width: 100%; box-sizing: border-box;
transition: border-color .15s; outline: none;
}
.pd-form-input:focus { border-color: var(--pd-mid); }
.pd-form-input[readonly] { background: var(--pd-light); color: var(--pd-grey); }
.pd-form-submit {
width: 100%; padding: .85rem; background: linear-gradient(135deg, var(--pd-green), var(--pd-mid));
color: #fff; border: none; border-radius: 10px;
font-family: var(--pd-font-h); font-size: .95rem; font-weight: 700;
cursor: pointer; transition: opacity .2s;
}
.pd-form-submit:hover { opacity: .9; }
.pd-form-submit:disabled { opacity: .5; cursor: not-allowed; }
.pd-callback-success {
padding: 1.25rem 1.5rem; background: #f0fdf4; color: #166534;
font-size: .9rem; text-align: center;
} .pd-urgency-link {
color: inherit;
font-weight: 700;
text-decoration: underline;
text-underline-offset: 3px;
cursor: pointer;
}
.pd-urgency-link:hover {
opacity: .85;
}