.resume-doctor-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.resume-doctor-header {
    text-align: center;
    margin-bottom: 40px;
}

.resume-doctor-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.resume-doctor-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.resume-doctor-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .resume-doctor-main {
        grid-template-columns: 2fr 1fr;
    }
}

.resume-doctor-form-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.resume-doctor-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.resume-doctor-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resume-doctor-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.required {
    color: #dc2626;
    margin-left: 4px;
}

.resume-doctor-input,
.resume-doctor-select,
.resume-doctor-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s;
}

.resume-doctor-input:focus,
.resume-doctor-select:focus,
.resume-doctor-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.resume-doctor-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.resume-doctor-help {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.resume-doctor-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.2s;
    cursor: pointer;
}

.resume-doctor-upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.resume-doctor-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    color: #9ca3af;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin: 0 0 4px 0;
}

.upload-formats {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.upload-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 6px;
}

.file-icon {
    color: #3b82f6;
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-remove {
    background: #fee;
    color: #dc2626;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.file-remove:hover {
    background: #fecaca;
}

.resume-doctor-actions {
    margin-top: 8px;
}

.resume-doctor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.resume-doctor-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.resume-doctor-button-primary {
    width: 100%;
    background: #3b82f6;
    color: #fff;
}

.resume-doctor-button-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.resume-doctor-button-secondary {
    background: #f3f4f6;
    color: #374151;
}

.resume-doctor-button-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.button-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.resume-doctor-status {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.resume-doctor-status.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.resume-doctor-status.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.resume-doctor-status.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.resume-doctor-results {
    margin-top: 32px;
    padding: 32px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.results-header h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    text-align: center;
}

.ats-score-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.score-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
}

.score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: #10b981;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease-in-out;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.score-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.score-description {
    font-size: 16px;
    color: #4b5563;
    margin: 0;
}

.download-section {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.download-section h4 {
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
}

.download-button:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    transform: translateX(4px);
}

.download-button-label {
    font-weight: 600;
    font-size: 15px;
}

.download-button-icon {
    color: #3b82f6;
}

.results-actions {
    text-align: center;
}

.resume-doctor-subscription-status {
    margin-top: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.subscription-info h4 {
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
    color: #3b82f6;
    margin: 0 0 8px 0;
}

.usage-info {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.subscription-actions {
    display: flex;
    gap: 12px;
}

.resume-doctor-button-upgrade {
    flex: 1;
    background: #10b981;
    color: #fff;
}

.resume-doctor-button-upgrade:hover:not(:disabled) {
    background: #059669;
}

.resume-doctor-pricing {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pricing-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    text-align: center;
}

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-card {
    position: relative;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.pricing-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pricing-card-featured {
    background: #eff6ff;
    border-color: #3b82f6;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-plan {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

.price-period {
    font-size: 16px;
    color: #6b7280;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 15px;
    color: #4b5563;
}

.pricing-button {
    width: 100%;
    padding: 12px 24px;
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pricing-button:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #3b82f6;
}

.pricing-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pricing-button-subscribe {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.pricing-button-subscribe:hover {
    background: #2563eb;
    border-color: #2563eb;
}

@media (max-width: 768px) {
    .resume-doctor-container {
        padding: 0 16px;
        margin: 20px auto;
    }

    .resume-doctor-title {
        font-size: 24px;
    }

    .resume-doctor-subtitle {
        font-size: 16px;
    }

    .resume-doctor-form-wrapper,
    .resume-doctor-pricing {
        padding: 20px;
    }

    .subscription-actions {
        flex-direction: column;
    }
}
